diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2021-01-07 21:18:01 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2021-01-07 21:25:57 +0100 |
commit | aa790406aa0b076938f877e38545baf481a986ec (patch) | |
tree | bfed680ab67bda7939b8150a82da1186a974cecf | |
parent | 6af9ae29cb3c29e8e196d303409da369d23c3450 (diff) | |
download | libquotient-aa790406aa0b076938f877e38545baf481a986ec.tar.gz libquotient-aa790406aa0b076938f877e38545baf481a986ec.zip |
BaseJob: setStatus(Pending) on scheduling a retry
Fixes #437.
(cherry picked from commit 12e00b234e5c5f4ed57b5c400d06f780e71014f4)
-rw-r--r-- | lib/jobs/basejob.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 0c030d48..8b4b33fe 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; |