summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_pollserver.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-03-08 14:26:09 +0500
committerElzorFox <elzorfox@ya.ru>2017-03-08 14:26:09 +0500
commit69dbc8aac3c51e5ec4fdd16bb12f17071e0819df (patch)
tree14fe827a6566eacf7864b73a8977e4a4742a7c50 /protocols/VKontakte/src/vk_pollserver.cpp
parent8524d1bcd0356da9a7600782210f6a28d0370272 (diff)
VKontakte: no PollingThread => no online
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp
index e2931e62b4..cc1a75b1fc 100644
--- a/protocols/VKontakte/src/vk_pollserver.cpp
+++ b/protocols/VKontakte/src/vk_pollserver.cpp
@@ -34,8 +34,14 @@ void CVkProto::OnReceivePollingInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *
JSONNode jnRoot;
JSONNode jnResponse = CheckJsonResponse(pReq, reply, jnRoot);
- if (!jnResponse)
+ if (!jnResponse) {
+ if (!pReq->bNeedsRestart) {
+ debugLogA("CVkProto::OnReceivePollingInfo PollingThread not start (getLongPollServer error)");
+ m_pollingConn = NULL;
+ ShutdownSession();
+ }
return;
+ }
char ts[32];
itoa(jnResponse["ts"].as_int(), ts, 10);