Browse Source

fixed connectionbrokennessdetection

master
tastytea 3 years ago
parent
commit
764e84cefd
Signed by: tastytea GPG Key ID: 59346E0EA35C67E5
  1. 2
      CMakeLists.txt
  2. 2
      src/masto.cpp

2
CMakeLists.txt

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

2
src/masto.cpp

@ -165,7 +165,7 @@ const std::vector<Easy::Notification> Listener::get_new_messages()
else
{
// If the last keep-alive packet was received 25 seconds or more ago
if (duration_cast<seconds>(lastping - system_clock::now()).count() >= 25)
if (duration_cast<seconds>(system_clock::now() - lastping).count() >= 25)
{
lastping = system_clock::now();
syslog(LOG_NOTICE, "Detected broken connection.");

Loading…
Cancel
Save