aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp
index 08f6c241..1949b34d 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -147,7 +147,8 @@ void Connection::reconnect()
void Connection::disconnectFromServer()
{
- d->syncJob->abandon();
+ if (d->syncJob)
+ d->syncJob->abandon();
d->isConnected = false;
}