From 02ecaadd3fca204ee6ae858fb95808bff22f4993 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Tue, 23 Sep 2014 12:11:04 +0000 Subject: VKontakte: fix for Pollserver net error git-svn-id: http://svn.miranda-ng.org/main/trunk@10565 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/VKontakte') 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; } -- cgit v1.2.3