Browse Source

reconnect: quick & dirty fix

tags/0.4.0
tastytea 2 years ago
parent
commit
1112092cb2
Signed by: tastytea GPG Key ID: 59346E0EA35C67E5
3 changed files with 6 additions and 2 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +1
    -0
      src/main.cpp
  3. +4
    -1
      src/masto.cpp

+ 1
- 1
CMakeLists.txt View File

@@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (expandurl-mastodon
VERSION 0.3.3
VERSION 0.3.4
LANGUAGES CXX
)



+ 1
- 0
src/main.cpp View File

@@ -64,6 +64,7 @@ int main(int argc, char *argv[])
cout << "DEBUG: Reestablishing connection...\n";
listener.stop();
listener.start();
cout << "DEBUG: Reestablished connection.\n";
}

for (Easy::Notification &notif : listener.get_new_messages())


+ 4
- 1
src/masto.cpp View File

@@ -77,7 +77,10 @@ const void Listener::stop()
if (_ptr)
{
_ptr->cancel_stream();
_thread.join();
if (_running)
{
_thread.join();
}
_ptr.reset();
_stream = "";
}


Loading…
Cancel
Save