Skip to content

Commit

Permalink
Always check the server when we where triggered by a redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Dec 9, 2020
1 parent ac45ee8 commit bd2e972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/accountstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd2e972

Please sign in to comment.