From 325fac82a5d207a54bdc8dcda32c39bbf7355e86 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Mon, 15 Sep 2014 09:23:53 +0000 Subject: VKontakte: Fix for rare bug with online contacts when protocol is offline git-svn-id: http://svn.miranda-ng.org/main/trunk@10449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte') diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 02d2199fba..6b049b078c 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -264,7 +264,7 @@ void CVkProto::RetrieveUsersInfo(bool flag) void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) { debugLogA("CVkProto::OnReceiveUserInfo %d", reply->resultCode); - if (reply->resultCode != 200) + if ((reply->resultCode != 200) || !IsOnline()) return; JSONROOT pRoot; @@ -362,7 +362,7 @@ void CVkProto::RetrieveFriends() void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) { debugLogA("CVkProto::OnReceiveFriends %d", reply->resultCode); - if (reply->resultCode != 200) + if ((reply->resultCode != 200) || !IsOnline()) return; JSONROOT pRoot; -- cgit v1.2.3