diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 12:25:38 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 12:25:38 +0000 |
commit | 2240a6333bb7c6b7f852636ba2dbff70235ae0fe (patch) | |
tree | 528e677ca97ee0b1ee04d749442d7fe5257f5fd1 /protocols/Sametime | |
parent | d80483a71f856bbae59583799aa0e98d338f6f0b (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')
-rw-r--r-- | protocols/Sametime/src/sametime_session.cpp | 10 |
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);
|