diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-23 12:11:04 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-23 12:11:04 +0000 |
commit | 02ecaadd3fca204ee6ae858fb95808bff22f4993 (patch) | |
tree | 8109f6a30c5e67ade8f51403106ab575cd51a134 /protocols/VKontakte/src/vk_thread.cpp | |
parent | 72c158766875ab2bd426fb19278fd80448c77977 (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.cpp | 3 |
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;
}
|