summaryrefslogtreecommitdiff
path: root/protocols/Icq10/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-07 16:29:37 +0200
committerGeorge Hazan <ghazan@miranda.im>2019-01-07 16:29:37 +0200
commitdc2267b1fb5bc6e43914f7a0709fbe48bf4b9a09 (patch)
tree64f7339aa091a8bad7fbc41b6b59ead5b64a5106 /protocols/Icq10/src/server.cpp
parentb156c043fbf64ff4451c5e59c4724c6ff5182909 (diff)
ICQ: connection manager (must fix #1728 completely)
Diffstat (limited to 'protocols/Icq10/src/server.cpp')
-rw-r--r--protocols/Icq10/src/server.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Icq10/src/server.cpp b/protocols/Icq10/src/server.cpp
index b868d2ff5d..1d5bda5521 100644
--- a/protocols/Icq10/src/server.cpp
+++ b/protocols/Icq10/src/server.cpp
@@ -232,7 +232,7 @@ bool CIcqProto::RefreshRobustToken()
<< CHAR_PARAM("nonce", CMStringA(FORMAT, "%d-%d", ts, rand() % 10)) << INT_PARAM("ts", ts);
CalcHash(tmp);
tmp->flags |= NLHRF_PERSISTENT;
- tmp->nlc = m_ConnPool[CONN_RAPI];
+ tmp->nlc = m_ConnPool[CONN_RAPI].s;
tmp->dataLength = tmp->m_szParam.GetLength();
tmp->pData = tmp->m_szParam.Detach();
tmp->szUrl = tmp->m_szUrl.GetBuffer();
@@ -241,7 +241,7 @@ bool CIcqProto::RefreshRobustToken()
tmp->AddHeader("User-Agent", szAgent);
NETLIBHTTPREQUEST *reply = Netlib_HttpTransaction(m_hNetlibUser, tmp);
- m_ConnPool[CONN_RAPI] = nullptr;
+ m_ConnPool[CONN_RAPI].s = nullptr;
if (reply != nullptr) {
RobustReply result(reply);
if (result.error() == 20000) {
@@ -258,7 +258,7 @@ bool CIcqProto::RefreshRobustToken()
ExecuteRequest(add);
}
- m_ConnPool[CONN_RAPI] = reply->nlc;
+ m_ConnPool[CONN_RAPI].s = reply->nlc;
Netlib_FreeHttpRequest(reply);
}
@@ -336,8 +336,8 @@ void CIcqProto::ShutdownSession()
SetEvent(m_evRequestsQueue);
for (auto &it : m_ConnPool)
- if (it)
- Netlib_Shutdown(it);
+ if (it.s)
+ Netlib_Shutdown(it.s);
OnLoggedOut();
}