summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-01-13 15:20:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-01-13 15:20:15 +0300
commit21f52dbfa251d171b4cc9dc315e8736da2e2be08 (patch)
tree8977d615b840f2d3e7f674409c4f416905c86434 /protocols
parent1e2176029a94fd8c8e404e4d6b969abef08be40f (diff)
fixes #2183 (ICQ-WIM: wrong OnLoggedOut() call location)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/ICQ-WIM/src/http.cpp2
-rw-r--r--protocols/ICQ-WIM/src/server.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/http.cpp b/protocols/ICQ-WIM/src/http.cpp
index bfa22866b3..4826a411c6 100644
--- a/protocols/ICQ-WIM/src/http.cpp
+++ b/protocols/ICQ-WIM/src/http.cpp
@@ -75,8 +75,6 @@ void __cdecl CIcqProto::ServerThread(void*)
}
}
- OnLoggedOut();
-
m_hWorkerThread = nullptr;
for (auto &it : m_ConnPool) {
if (it.s)
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index b3bbcc460c..4bf8ab7385 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -538,6 +538,8 @@ void CIcqProto::ShutdownSession()
if (m_hWorkerThread)
SetEvent(m_evRequestsQueue);
+ OnLoggedOut();
+
for (auto &it : m_ConnPool) {
if (it.s) {
Netlib_Shutdown(it.s);