summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-23 12:11:04 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-23 12:11:04 +0000
commit02ecaadd3fca204ee6ae858fb95808bff22f4993 (patch)
tree8109f6a30c5e67ade8f51403106ab575cd51a134 /protocols/VKontakte/src/vk_thread.cpp
parent72c158766875ab2bd426fb19278fd80448c77977 (diff)
VKontakte: fix for Pollserver net error
git-svn-id: http://svn.miranda-ng.org/main/trunk@10565 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 0c059872d3..4619636c48 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -948,6 +948,9 @@ int CVkProto::PollServer()
NETLIBHTTPREQUEST *reply = (NETLIBHTTPREQUEST*)CallService(MS_NETLIB_HTTPTRANSACTION, (WPARAM)m_hNetlibUser, (LPARAM)&req);
if (reply == NULL) {
m_pollingConn = NULL;
+ int oldStatus = m_iStatus;
+ m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
+ ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
return 0;
}