From: Christian Kamm Date: Thu, 25 Apr 2019 09:52:41 +0000 (+0200) Subject: Fix logic for duration that an etag reply indicates connectivity X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~242 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e5ae77994d2c8b234d5946c63ea2ab82caabcfe;p=nextcloud-desktop.git Fix logic for duration that an etag reply indicates connectivity This got inverted accidentally when std::chrono was introduced. For #7160 --- 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; }