summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_status.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_status.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_status.cpp')
-rw-r--r--protocols/VKontakte/src/vk_status.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_status.cpp b/protocols/VKontakte/src/vk_status.cpp
index 7932ca21d3..ef7d83b874 100644
--- a/protocols/VKontakte/src/vk_status.cpp
+++ b/protocols/VKontakte/src/vk_status.cpp
@@ -20,6 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
int CVkProto::SetStatus(int iNewStatus)
{
debugLogA("CVkProto::SetStatus iNewStatus = %d, m_iStatus = %d, m_iDesiredStatus = %d m_hWorkerThread = %d", iNewStatus, m_iStatus, m_iDesiredStatus, m_hWorkerThread == NULL ? 0 : 1);
+
+ mir_cslock lck(m_csSetStatus);
+
if (m_iDesiredStatus == iNewStatus || iNewStatus == ID_STATUS_IDLE)
return 0;