Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2020-12-03 16:15:15 +0300
committerHannah von Reth <vonreth@kde.org>2020-12-09 13:52:03 +0300
commit89d82d8364ee1a8c18e742a3379dae965ab9a971 (patch)
tree4133e4ac1261e4f1f7c1bce5d0ea2bf561a90cda /src/gui/accountstate.cpp
parent350feb26b274b3c35e11bfbc291b11aa3dcb28da (diff)
Always check the server when we where triggered by a redirect
Diffstat (limited to 'src/gui/accountstate.cpp')
-rw-r--r--src/gui/accountstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/accountstate.cpp b/src/gui/accountstate.cpp
index 86cc4bdc0..d794705fe 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<std::chrono::seconds>(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;