reconnect: quick & dirty fix

This commit is contained in:
tastytea 2018-05-20 11:07:38 +02:00
vecāks e053d7cd44
revīzija 1112092cb2
Parakstījis: tastytea
GPG atslēgas ID: 59346E0EA35C67E5
3 mainīti faili ar 6 papildinājumiem un 2 dzēšanām

Parādīt failu

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

Parādīt failu

@ -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())

Parādīt failu

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