summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Icq10/src/http.cpp2
-rw-r--r--protocols/Icq10/src/server.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Icq10/src/http.cpp b/protocols/Icq10/src/http.cpp
index 4681a4d135..0d66a3ae71 100644
--- a/protocols/Icq10/src/http.cpp
+++ b/protocols/Icq10/src/http.cpp
@@ -159,7 +159,7 @@ void CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq)
(this->*(pReq->m_pFunc))(reply, pReq);
if (pReq->m_conn != CONN_NONE)
- m_ConnPool[pReq->m_conn] = pReq->nlc;
+ m_ConnPool[pReq->m_conn] = reply->nlc;
Netlib_FreeHttpRequest(reply);
}
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");