summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-14 20:51:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-14 20:51:50 +0300
commitd870d3e4c02e0093875ad0202acd4979cbc3a97a (patch)
tree6bbb9d15656b6ef25d5cea8abad3acfed1bf7b65 /protocols
parentf2a8e1b955cca4660629877fe2d2a845f8041753 (diff)
on no way we don't close FETCH connection
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Icq10/src/http.cpp6
1 files changed, 5 insertions, 1 deletions
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;