summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 3e51da9baa..2430e21a15 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -32,11 +32,9 @@ static char fieldsName[] = "id, first_name, last_name, photo_100, bdate, sex, ti
void CVkProto::ShutdownSession()
{
debugLogA("CVkProto::ShutdownSession");
- if (m_hWorkerThread) {
- m_bTerminated = true;
+ m_bTerminated = true;
+ if (m_hWorkerThread)
SetEvent(m_evRequestsQueue);
- }
-
OnLoggedOut();
}