summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-04 17:36:05 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-04 17:36:05 +0000
commitec30e45e04d2d8fbb1e62c520379a0f0bc99456c (patch)
tree5237118e5c8bea0dfc49169ed72a0b3e151b012f /protocols/VKontakte/src/vk_thread.cpp
parentb2e8a494c50aed30188fe9dbd185ddca1628f656 (diff)
VKontakte:
add more debuglog lines ShutdownSession() on PollServer() git-svn-id: http://svn.miranda-ng.org/main/trunk@10689 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index ffb9e438a7..cd8a02e0b3 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -36,7 +36,7 @@ void CVkProto::ConnectionFailed(int iReason)
delSetting("AccessToken");
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, iReason);
-
+ debugLogA("CVkProto::ConnectionFailed ShutdownSession");
ShutdownSession();
}
@@ -92,6 +92,7 @@ void CVkProto::OnLoggedOut()
void CVkProto::SetServerStatus(int iNewStatus)
{
+ debugLogA("CVkProto::SetServerStatus %d %d", iNewStatus, m_iStatus);
if (!IsOnline() || iNewStatus < ID_STATUS_OFFLINE)
return;
@@ -1106,11 +1107,8 @@ int CVkProto::PollServer()
NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)&req);
if (reply == NULL) {
- debugLogA("CVkProto::PollServer is dead");
- m_pollingConn = NULL;
- int oldStatus = m_iStatus;
- m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
- ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
+ debugLogA("CVkProto::PollServer is dead");
+ ShutdownSession();
return 0;
}