summaryrefslogtreecommitdiff
path: root/protocols/Icq10/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-30 18:00:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-30 18:00:45 +0300
commit484310a70f4152b15dcbae24ed9e23009ae77c26 (patch)
treebca0e19889336d7b6ec45d6abf85c78dce18a52e /protocols/Icq10/src/server.cpp
parent72a3eccff9871ce57b12d2a282d50bef6bbcd05c (diff)
Icq10:
- fixes #1695 (socket leak); - fixes timeout error in long poll connection
Diffstat (limited to 'protocols/Icq10/src/server.cpp')
-rw-r--r--protocols/Icq10/src/server.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Icq10/src/server.cpp b/protocols/Icq10/src/server.cpp
index 5312c4e880..e164de867e 100644
--- a/protocols/Icq10/src/server.cpp
+++ b/protocols/Icq10/src/server.cpp
@@ -589,7 +589,10 @@ void __cdecl CIcqProto::PollThread(void*)
}
else szUrl.Append("&timeout=60000");
- ExecuteRequest(new AsyncHttpRequest(CONN_FETCH, REQUEST_GET, szUrl, &CIcqProto::OnFetchEvents));
+ auto *pReq = new AsyncHttpRequest(CONN_FETCH, REQUEST_GET, szUrl, &CIcqProto::OnFetchEvents);
+ if (!bFirst)
+ pReq->timeout = 62000;
+ ExecuteRequest(pReq);
}
debugLogA("Polling thread ended");