diff options
-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);
|