From e053d7cd447bba15cafe7794e4255dd6e86235fb Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 19 May 2018 22:49:40 +0200 Subject: [PATCH] Reconnections did not work, this should fix it. Needs testing --- CMakeLists.txt | 2 +- src/masto.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 989e54c..24b9021 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (expandurl-mastodon - VERSION 0.3.2 + VERSION 0.3.3 LANGUAGES CXX ) diff --git a/src/masto.cpp b/src/masto.cpp index 045a555..fb06748 100644 --- a/src/masto.cpp +++ b/src/masto.cpp @@ -78,6 +78,8 @@ const void Listener::stop() { _ptr->cancel_stream(); _thread.join(); + _ptr.reset(); + _stream = ""; } else {