summaryrefslogtreecommitdiff
path: root/protocols/Sametime/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-11 12:25:38 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-11 12:25:38 +0000
commit2240a6333bb7c6b7f852636ba2dbff70235ae0fe (patch)
tree528e677ca97ee0b1ee04d749442d7fe5257f5fd1 /protocols/Sametime/src
parentd80483a71f856bbae59583799aa0e98d338f6f0b (diff)
fix leaving critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13528 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Sametime/src')
-rw-r--r--protocols/Sametime/src/sametime_session.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/Sametime/src/sametime_session.cpp b/protocols/Sametime/src/sametime_session.cpp
index 2f322b2c4f..2e65171e51 100644
--- a/protocols/Sametime/src/sametime_session.cpp
+++ b/protocols/Sametime/src/sametime_session.cpp
@@ -424,12 +424,14 @@ void __cdecl SessionThread(LPVOID param)
handler.on_setPrivacyInfo = SessionSetPrivacyInfo;
handler.on_setUserStatus = SessionSetUserStatus;
- mir_cslock lck(proto->session_cs);
- proto->session = mwSession_new(&handler);
+ {
+ mir_cslock lck(proto->session_cs);
+ proto->session = mwSession_new(&handler);
- proto->InitMeanwhileServices();
+ proto->InitMeanwhileServices();
- mwSession_start(proto->session);
+ mwSession_start(proto->session);
+ }
mir_forkthread(KeepAliveThread, (void*)proto);