aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jobs/basejob.cpp1
-rw-r--r--jobs/basejob.h3
2 files changed, 3 insertions, 1 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);
diff --git a/jobs/basejob.h b/jobs/basejob.h
index c03c914f..a5b457c5 100644
--- a/jobs/basejob.h
+++ b/jobs/basejob.h
@@ -53,7 +53,8 @@ namespace QMatrixClient
enum StatusCode { NoError = 0 // To be compatible with Qt conventions
, Success = 0
, Pending = 1
- , ErrorLevel = 100 // Errors have codes starting from this
+ , Abandoned = 50 //< A very brief period between abandoning and object deletion
+ , ErrorLevel = 100 //< Errors have codes starting from this
, NetworkError = 100
, JsonParseError
, TimeoutError