aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:18:01 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:18:01 +0100
commit12e00b234e5c5f4ed57b5c400d06f780e71014f4 (patch)
tree06a414e7c08bc5bca92584e4c47b3450c1c66505 /lib/jobs/basejob.cpp
parent4f06d46d6d6062d6d17f69eeaddb7810edac5bbf (diff)
downloadlibquotient-12e00b234e5c5f4ed57b5c400d06f780e71014f4.tar.gz
libquotient-12e00b234e5c5f4ed57b5c400d06f780e71014f4.zip
BaseJob: setStatus(Pending) on scheduling a retry
Fixes #437.
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r--lib/jobs/basejob.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index da66a9f2..5960203d 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -625,6 +625,7 @@ void BaseJob::finishJob()
qCWarning(d->logCat).nospace()
<< this << ": retry #" << d->retriesTaken << " in "
<< retryIn.count() << " s";
+ setStatus(Pending, "Pending retry");
d->retryTimer.start(retryIn);
emit retryScheduled(d->retriesTaken, milliseconds(retryIn).count());
return;