aboutsummaryrefslogtreecommitdiff
path: root/jobs/basejob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-20 10:38:37 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-20 10:38:37 +0900
commitd54bdd710163afe9e09b2c4c65bbf21454ed2ceb (patch)
tree10fa80e66ad06c803d0283a3ace183996b4cada8 /jobs/basejob.cpp
parent3bf51eea5e6152cd39daa971ac6f88d0571ce198 (diff)
downloadlibquotient-d54bdd710163afe9e09b2c4c65bbf21454ed2ceb.tar.gz
libquotient-d54bdd710163afe9e09b2c4c65bbf21454ed2ceb.zip
BaseJob: added Abandoned status
For a very brief period between calling BaseJob::abandon() and deletion of the job object.
Diffstat (limited to 'jobs/basejob.cpp')
-rw-r--r--jobs/basejob.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index c35a7711..5f5aa410 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -448,6 +448,7 @@ void BaseJob::setStatus(int code, QString message)
void BaseJob::abandon()
{
beforeAbandon(d->reply.data());
+ setStatus(Abandoned);
this->disconnect();
if (d->reply)
d->reply->disconnect(this);