summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-04-26 11:26:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-04-26 11:26:47 +0300
commit9ed5ca563b554a6522e2d993b7a45959d5b2497b (patch)
tree565d2fa3e1b7278d5d1ce04c580e3c73a4bc33b0 /protocols/ICQ-WIM
parent9482f765a00b1abf1e9cdc28a1854e0ab53809fe (diff)
fixes #1928 (ICQ: first manual reconnect after manual disconnect is always failed)
Diffstat (limited to 'protocols/ICQ-WIM')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index 47ef4bf077..a923fb4dec 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -535,9 +535,12 @@ void CIcqProto::ShutdownSession()
OnLoggedOut();
- for (auto &it : m_ConnPool)
- if (it.s)
+ for (auto &it : m_ConnPool) {
+ if (it.s) {
Netlib_Shutdown(it.s);
+ it.s = nullptr;
+ }
+ }
}
/////////////////////////////////////////////////////////////////////////////////////////