From 0f8ca030fe8a3ec829caafc1829c38b58a8b19a2 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 21 May 2018 01:25:33 +0200 Subject: [PATCH] catchup() after each reconnect --- CMakeLists.txt | 2 +- src/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ca127c..6eecb55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (expandurl-mastodon - VERSION 0.5.0 + VERSION 0.5.1 LANGUAGES CXX ) diff --git a/src/main.cpp b/src/main.cpp index 29df598..c53f6ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -65,6 +65,7 @@ int main(int argc, char *argv[]) cout << "DEBUG: Reestablishing connection...\n"; listener.stop(); listener.start(); + new_messages = listener.catchup(); } // Only get new messages if we don't have to catchup