From 1e5ae77994d2c8b234d5946c63ea2ab82caabcfe Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 25 Apr 2019 11:52:41 +0200 Subject: [PATCH] Fix logic for duration that an etag reply indicates connectivity This got inverted accidentally when std::chrono was introduced. For #7160 --- src/gui/accountstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp index b2e757448..dcd174392 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -230,7 +230,7 @@ void AccountState::checkConnectivity() std::chrono::milliseconds polltime = cfg.remotePollInterval(); if (isConnected() && _timeSinceLastETagCheck.isValid() - && _timeSinceLastETagCheck.hasExpired(polltime.count())) { + && !_timeSinceLastETagCheck.hasExpired(polltime.count())) { qCDebug(lcAccountState) << account()->displayName() << "The last ETag check succeeded within the last " << polltime.count() / 1000 << " secs. No connection check needed!"; return; }