From a47a008abce196de3aa9f8d02f2c3ecf2f70ebab 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 88b03307f2..7d211c35c2 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -196,7 +196,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; }