From bd2e972cee78743267413521876a51eacefa9255 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Thu, 3 Dec 2020 14:15:15 +0100 Subject: [PATCH] Always check the server when we where triggered by a redirect --- 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 86cc4bdc063..d794705fea7 100644 --- a/src/gui/accountstate.cpp +++ b/src/gui/accountstate.cpp @@ -238,7 +238,7 @@ void AccountState::checkConnectivity(bool verifyOnly) // if the last successful etag check job is not so long ago. const auto polltime = std::chrono::duration_cast(ConfigFile().remotePollInterval()); const auto elapsed = _timeOfLastETagCheck.secsTo(QDateTime::currentDateTimeUtc()); - if (isConnected() && _timeOfLastETagCheck.isValid() + if (!verifyOnly && isConnected() && _timeOfLastETagCheck.isValid() && elapsed <= polltime.count()) { qCDebug(lcAccountState) << account()->displayName() << "The last ETag check succeeded within the last " << polltime.count() << "s (" << elapsed << "s). No connection check needed!"; return;