summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2016-05-23 11:07:34 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2016-05-23 11:07:34 +0000
commit9f0105daab3c080213ebb30d3a6449bb3d77e37f (patch)
treecbeba0177cf332ab024408a4013a788e16ddb301 /protocols/VKontakte/src/vk_thread.cpp
parenta22596e0a8d424b18c5396b6584de57cccd180c6 (diff)
VKontakte: fix (?) freeze status as offline on speedy status change
git-svn-id: http://svn.miranda-ng.org/main/trunk@16861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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();
}