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