summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen_presence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tlen/src/tlen_presence.cpp')
-rw-r--r--protocols/Tlen/src/tlen_presence.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Tlen/src/tlen_presence.cpp b/protocols/Tlen/src/tlen_presence.cpp
index 3f4785206e..e9e4b11fe7 100644
--- a/protocols/Tlen/src/tlen_presence.cpp
+++ b/protocols/Tlen/src/tlen_presence.cpp
@@ -203,7 +203,7 @@ static void TlenSendPresenceTo(TlenProtocol *proto, int status, char *to)
// Send <presence/> update for status (we won't handle ID_STATUS_OFFLINE here)
// Note: tlenModeMsg is already encoded using TlenTextEncode()
- EnterCriticalSection(&proto->modeMsgMutex);
+ mir_cslock lck(proto->modeMsgMutex);
showBody = NULL;
statusMsg = NULL;
@@ -309,8 +309,6 @@ static void TlenSendPresenceTo(TlenProtocol *proto, int status, char *to)
}
setOwnStatusOnCList(proto, proto->m_iStatus, statusMsg);
-
- LeaveCriticalSection(&proto->modeMsgMutex);
}