From d870d3e4c02e0093875ad0202acd4979cbc3a97a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 14 Jan 2019 20:51:50 +0300 Subject: on no way we don't close FETCH connection --- protocols/Icq10/src/http.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocols/Icq10/src/http.cpp b/protocols/Icq10/src/http.cpp index a040fffdc9..6552dabb3d 100644 --- a/protocols/Icq10/src/http.cpp +++ b/protocols/Icq10/src/http.cpp @@ -51,8 +51,12 @@ void __cdecl CIcqProto::ServerThread(void*) int ts = time(0); for (auto &it : m_ConnPool) { + int idx = int(&it - m_ConnPool); + if (idx == CONN_FETCH) + continue; + if (it.s && it.lastTs + it.timeout < ts) { - debugLogA("Socket #1 (%p) expired", int(&it - m_ConnPool), it.s); + debugLogA("Socket #1 (%p) expired", idx, it.s); Netlib_CloseHandle(it.s); it.s = nullptr; it.lastTs = 0; -- cgit v1.2.3