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:
Christian Kamm 2019-04-25 11:52:41 +02:00 committed by Kevin Ottens
parent 7f3f13fd97
commit 1e5ae77994
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -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;
}