diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-27 13:06:00 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-27 13:06:00 +0200 |
commit | 1a6f765baa14c490594bcf255e265e5add1aeec9 (patch) | |
tree | 23dfdd06fa21c7be55e5dc630c9df11eb0b6ce6d | |
parent | d78c9d23d5ad5e1341e46094d7f9e29686acaa7e (diff) |
crash fix
-rw-r--r-- | protocols/MRA/src/MraProto.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp index 8dada4acde..4edeb5694b 100644 --- a/protocols/MRA/src/MraProto.cpp +++ b/protocols/MRA/src/MraProto.cpp @@ -116,7 +116,9 @@ void CMraProto::OnShutdown() {
m_bShutdown = true;
SetStatus(ID_STATUS_OFFLINE);
- MraAvatarsQueueSuspend(hAvatarsQueueHandle);
+
+ if (hAvatarsQueueHandle != nullptr)
+ MraAvatarsQueueSuspend(hAvatarsQueueHandle);
}
/////////////////////////////////////////////////////////////////////////////////////////
|