summaryrefslogtreecommitdiff
path: root/protocols/Icq10/src/http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Icq10/src/http.cpp')
-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;