summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Icq10/src/http.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/Icq10/src/http.cpp b/protocols/Icq10/src/http.cpp
index cf508f8ef7..5645399e7e 100644
--- a/protocols/Icq10/src/http.cpp
+++ b/protocols/Icq10/src/http.cpp
@@ -112,14 +112,6 @@ void CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq)
}
}
- if (pReq->m_conn != CONN_NONE) {
- pReq->flags |= NLHRF_PERSISTENT;
- pReq->nlc = m_ConnPool[pReq->m_conn].s;
- m_ConnPool[pReq->m_conn].lastTs = time(0);
- }
-
- debugLogA("Executing request %s:\n%s", pReq->m_reqId, pReq->szUrl);
-
if (pReq->m_conn == CONN_RAPI) {
CMStringA szAgent(FORMAT, "%d Mail.ru Windows ICQ (version 10.0.1999)", DWORD(m_dwUin));
pReq->AddHeader("User-Agent", szAgent);
@@ -132,6 +124,14 @@ void CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq)
}
}
+ debugLogA("Executing request %s:\n%s", pReq->m_reqId, pReq->szUrl);
+
+ if (pReq->m_conn != CONN_NONE) {
+ pReq->flags |= NLHRF_PERSISTENT;
+ pReq->nlc = m_ConnPool[pReq->m_conn].s;
+ m_ConnPool[pReq->m_conn].lastTs = time(0);
+ }
+
NETLIBHTTPREQUEST *reply = Netlib_HttpTransaction(m_hNetlibUser, pReq);
if (reply != nullptr) {
if (pReq->m_conn != CONN_NONE) {