From 9ff04e98d62f93a7a6003fc80d189e96c6835f84 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 28 Feb 2018 17:11:10 +0900 Subject: Skip retry interval if the last job attempt timed out Closes #175. --- jobs/basejob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp index c3b110f0..7669d1d4 100644 --- a/jobs/basejob.cpp +++ b/jobs/basejob.cpp @@ -373,7 +373,8 @@ void BaseJob::finishJob() // TODO: The whole retrying thing should be put to ConnectionManager // otherwise independently retrying jobs make a bit of notification // storm towards the UI. - const auto retryInterval = getNextRetryInterval(); + const auto retryInterval = + error() == TimeoutError ? 0 : getNextRetryInterval(); ++d->retriesTaken; qCWarning(d->logCat) << this << "will take retry" << d->retriesTaken << "in" << retryInterval/1000 << "s"; -- cgit v1.2.3