From 3860a3ced0ce76a977c4f42ff9a3fa4e98b230e9 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 11 Sep 2016 20:11:24 +0900 Subject: Make sure syncJob pointer is null upon abandoning --- connection.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3