diff options
author | ElzorFox <elzorfox@ya.ru> | 2016-11-02 16:11:22 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2016-11-02 16:11:22 +0500 |
commit | df38bcb83c71521d1f87d889dba4d1cd7872432f (patch) | |
tree | bacfe5bbe747450ec8ccb03b01b7b770add3ace9 /protocols/VKontakte/src/vk_pollserver.cpp | |
parent | f5b247e3341f7ff31e0c0cfae549f22e57d19208 (diff) |
VKontakte:
fix (?) restart longpoolserver on speedy status change
update VK_API_VER to 5.60
version bump
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_pollserver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp index 372a73e92f..e4a3b5524b 100644 --- a/protocols/VKontakte/src/vk_pollserver.cpp +++ b/protocols/VKontakte/src/vk_pollserver.cpp @@ -211,6 +211,7 @@ int CVkProto::PollServer() }
else {
debugLogA("CVkProto::PollServer => ShutdownSession");
+ m_hPollingThread = NULL;
ShutdownSession();
return 0;
}
@@ -256,7 +257,7 @@ void CVkProto::PollingThread(void*) debugLogA("CVkProto::PollingThread: entering");
while (!m_bTerminated)
- if (PollServer() == -1)
+ if (PollServer() == -1 || !m_hPollingThread)
break;
m_hPollingThread = NULL;
|