aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-09-11 20:11:24 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-09-11 20:11:24 +0900
commit3860a3ced0ce76a977c4f42ff9a3fa4e98b230e9 (patch)
tree0d7f95ccc80e3ee79e3cd25f561ba233111fbb71
parent107a5017149f8dbe7829e8e6d03a0e7a1124f281 (diff)
downloadlibquotient-3860a3ced0ce76a977c4f42ff9a3fa4e98b230e9.tar.gz
libquotient-3860a3ced0ce76a977c4f42ff9a3fa4e98b230e9.zip
Make sure syncJob pointer is null upon abandoning
-rw-r--r--connection.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/connection.cpp b/connection.cpp
index 1949b34d..1bd8e292 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -148,7 +148,10 @@ void Connection::reconnect()
void Connection::disconnectFromServer()
{
if (d->syncJob)
+ {
d->syncJob->abandon();
+ d->syncJob = nullptr;
+ }
d->isConnected = false;
}