From 817c5f883a658c4abca078df852ad81f6ec7f861 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Sat, 4 Apr 2015 07:36:30 +0000 Subject: VKontakte: fix for failed:3 in PollServer git-svn-id: http://svn.miranda-ng.org/main/trunk@12598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_pollserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index 3de7451331..72c23b2e09 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -196,7 +196,7 @@ int CVkProto::PollServer() if (reply->resultCode == 200) { JSONROOT pRoot(reply->pData); JSONNODE *pFailed = json_get(pRoot, "failed"); - if (pFailed != NULL && json_as_int(pFailed) == 2) { + if (pFailed != NULL && json_as_int(pFailed) > 1) { RetrievePollingInfo(); retVal = -1; debugLogA("Polling key expired, restarting polling thread"); -- cgit v1.2.3