summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-15 09:23:53 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-15 09:23:53 +0000
commit325fac82a5d207a54bdc8dcda32c39bbf7355e86 (patch)
tree55a05ef8011a5f5993c1a6c3f3978ac1754b72b3
parent3f85b15bfb0f49b3ecc2da23060f4a2d6d3ad372 (diff)
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
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
1 files changed, 2 insertions, 2 deletions
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;