summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2019-01-03 18:20:01 +0500
committerElzorFox <elzorfox@ya.ru>2019-01-03 18:20:01 +0500
commit1692510f17043da142e2a000d3b714cd053605b3 (patch)
tree23edc2e65a23ebdd42b0c92c2f893de7b5888128 /protocols/VKontakte
parent63866d8adf73c25a16958b9eaa336aa4b4f0a2f6 (diff)
VKontakte: additional fix for #1712
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 6b3ba96c13..bea0d174b4 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -107,8 +107,8 @@ void CVkProto::ClosePollingConnection(bool bShutdown)
if (bShutdown)
Netlib_Shutdown(m_pollingConn);
-
- Netlib_CloseHandle(m_pollingConn);
+ else
+ Netlib_CloseHandle(m_pollingConn);
m_pollingConn = nullptr;
}
@@ -121,8 +121,8 @@ void CVkProto::CloseAPIConnection(bool bShutdown)
if (bShutdown)
Netlib_Shutdown(m_hAPIConnection);
-
- Netlib_CloseHandle(m_hAPIConnection);
+ else
+ Netlib_CloseHandle(m_hAPIConnection);
m_hAPIConnection = nullptr;
}