summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-11-29 15:33:06 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-11-29 15:33:06 +0000
commit47ef7460d44bd169ada52ae8b1a2c7fa6f27d0d4 (patch)
treeb0a44385d3cd73b4627bafd4deb5f473c990b8d9 /protocols/VKontakte/src/vk_thread.cpp
parentfe076d92eca402b27979bacf4062563e759e7279 (diff)
VKontakte:
fix(?) 5 sec freeze on Miranda shutdown git-svn-id: http://svn.miranda-ng.org/main/trunk@11152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 159b703365..78843d5ea5 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -895,7 +895,7 @@ int CVkProto::PollServer()
break;
debugLogA("CVkProto::PollServer is dead");
m_pollingConn = NULL;
- if (iPollConnRetry){
+ if (iPollConnRetry && !m_bTerminated){
iPollConnRetry--;
debugLogA("CVkProto::PollServer restarting %d", MAX_RETRIES - iPollConnRetry);
Sleep(1000);