diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-07 20:28:20 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-07 20:28:20 +0200 |
commit | fb45cf394b9dc68b5df0bb1bcaab0cf5a7947a03 (patch) | |
tree | 241063d5c2e359d2c5f23d288f41b9a84e53a7ac /protocols | |
parent | 961e087318eb6de88c03a2eef1b2c1056c25d94c (diff) |
remove the second unneeded connection to rapi.icq.net
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Icq10/src/http.cpp | 16 |
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) { |