diff options
author | George Hazan <ghazan@miranda.im> | 2020-07-17 21:03:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-07-17 21:03:32 +0300 |
commit | c4bd21ada7eb87b14ef79e075b943e0551061a8a (patch) | |
tree | a900cf36783cc72b98b39a6179eea2a9ecee94a9 /protocols | |
parent | fb3df9542d64e9fa4d69de7c719ab7ad0c3d49bc (diff) |
fixes #2482 (ICQ не всегда закрывает сессию при завершении работы)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 4216c65a40..715b3487e4 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -582,9 +582,9 @@ void CIcqProto::SetServerStatus(int iStatus) << AIMSID(this) << CHAR_PARAM("view", szStatus) << INT_PARAM("invisible", invisible)); if (iStatus == ID_STATUS_OFFLINE && !getByte(DB_KEY_PHONEREG)) { - auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, ICQ_API_SERVER "/aim/endSession", &CIcqProto::OnSessionEnd); + auto *pReq = new AsyncHttpRequest(CONN_NONE, REQUEST_GET, ICQ_API_SERVER "/aim/endSession", &CIcqProto::OnSessionEnd); pReq << AIMSID(this) << INT_PARAM("invalidateToken", 1); - Push(pReq); + ExecuteRequest(pReq); } int iOldStatus = m_iStatus; m_iStatus = iStatus; |