mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Fix logic for duration that an etag reply indicates connectivity
This got inverted accidentally when std::chrono was introduced. For #7160
This commit is contained in:
parent
7f3f13fd97
commit
1e5ae77994
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue