From 9ed5ca563b554a6522e2d993b7a45959d5b2497b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Apr 2019 11:26:47 +0300 Subject: fixes #1928 (ICQ: first manual reconnect after manual disconnect is always failed) --- protocols/ICQ-WIM/src/server.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols') 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; + } + } } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3