diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-09-08 11:21:39 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-09-08 11:21:39 +0900 |
commit | 005907225b376335545744e78a3bdfaec5ad0f90 (patch) | |
tree | d92f5819cde9ca2e041e9191b8a0b91fbab742ce | |
parent | 2d8f137c6d40a0ed36aa81423a54fe6230388850 (diff) | |
download | libquotient-005907225b376335545744e78a3bdfaec5ad0f90.tar.gz libquotient-005907225b376335545744e78a3bdfaec5ad0f90.zip |
Connection: Fixed an unguarded usage of d->syncJob pointer
-rw-r--r-- | connection.cpp | 3 |
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; } |