fixed connectionbrokennessdetection

This commit is contained in:
tastytea 2018-06-11 17:15:35 +02:00
parent 209743fd55
commit 764e84cefd
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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.");