Connectivity: Delete job on timeout #4275

This was not done if there was no reply
This commit is contained in:
Markus Goetz 2016-05-30 18:15:41 +02:00
parent 9a2450c4c1
commit d88ab4653b
2 changed files with 2 additions and 0 deletions

View file

@ -209,6 +209,7 @@ void AccountState::checkConnectivity()
void AccountState::slotConnectionValidatorResult(ConnectionValidator::Status status, const QStringList& errors)
{
if (isSignedOut()) {
qDebug() << "Signed out, ignoring" << connectionStatusString(status) << _account->url().toString();
return;
}

View file

@ -242,6 +242,7 @@ void AbstractNetworkJob::slotTimeout()
reply()->abort();
} else {
qDebug() << Q_FUNC_INFO << this << "Timeout reply was NULL";
deleteLater();
}
}