summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/chat.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-23 23:47:50 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-23 23:47:50 +0000
commit4865736f1afacd6e25807ada8b85fc0c76a4d0ec (patch)
treec3f831eaf8e699a97588ce80437e66a3504a29db /protocols/FacebookRM/src/chat.cpp
parentd68de25a33e3dd4da8656c0ae5308290e90529e2 (diff)
Facebook: Try to fix concurrent write of notifications to chatroom (I thought it's thread safe?)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11045 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/chat.cpp')
-rw-r--r--protocols/FacebookRM/src/chat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp
index d7d725917a..b4a8f3511e 100644
--- a/protocols/FacebookRM/src/chat.cpp
+++ b/protocols/FacebookRM/src/chat.cpp
@@ -424,6 +424,8 @@ void FacebookProto::PrepareNotificationsChatRoom() {
}
void FacebookProto::UpdateNotificationsChatRoom(facebook_notification *notification) {
+ ScopedLock s(facy.notifications_lock_);
+
if (!getBool(FACEBOOK_KEY_NOTIFICATIONS_CHATROOM, DEFAULT_NOTIFICATIONS_CHATROOM))
return;