From 4865736f1afacd6e25807ada8b85fc0c76a4d0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 23 Nov 2014 23:47:50 +0000 Subject: 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 --- protocols/FacebookRM/src/chat.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/FacebookRM/src') 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; -- cgit v1.2.3