summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-11 12:19:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-11 12:19:00 +0300
commit79b5149e872319dcf0f2b6d5c4da5ece3ddc7993 (patch)
treef8733f7a1b1a918ca706bdad9ea696647dc7ed25 /protocols/ICQ-WIM/src/server.cpp
parent0d6b9512088d959126c965d82403623196a8ff85 (diff)
fixes #1892 (ICQ: still online even if network adapter is disabled)
Diffstat (limited to 'protocols/ICQ-WIM/src/server.cpp')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 21f0b57ddb..217760f12c 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -516,6 +516,9 @@ void CIcqProto::ShutdownSession()
debugLogA("CIcqProto::ShutdownSession");
// shutdown all resources
+ while (!IsQueueEmpty())
+ Sleep(50);
+
if (m_hWorkerThread)
SetEvent(m_evRequestsQueue);