diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 8 |
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);
|