summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-04-04 07:36:30 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-04-04 07:36:30 +0000
commit817c5f883a658c4abca078df852ad81f6ec7f861 (patch)
tree6ff5188dc60b07d50f8ad17234d2a3836a49942e /protocols
parent2b82b6fe83df09a31a60288871227b3ea97d39a5 (diff)
VKontakte: fix for failed:3 in PollServer
git-svn-id: http://svn.miranda-ng.org/main/trunk@12598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp2
1 files changed, 1 insertions, 1 deletions
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");