summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-20 11:49:22 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-20 11:49:22 +0000
commita75ba12d58c579bd1a193c01d452db6cb295ae7a (patch)
tree2a59001be2b9bf64b28651ea0765c0d319078959 /protocols/FacebookRM/src/communication.cpp
parentbf644e855744c674eedf7951ba1f85fd629a1066 (diff)
Facebook: Refactor whole groupchat with notifications
This fix crash on right-click to notification popup and problem with not working notifications count in statusbar git-svn-id: http://svn.miranda-ng.org/main/trunk@11028 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 11c4e066d8..398093fe3f 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -718,7 +718,9 @@ void facebook_client::clear_cookies()
}
void facebook_client::clear_notifications()
-{
+{
+ ScopedLock s(notifications_lock_);
+
for (std::map<std::string, facebook_notification*>::iterator it = notifications.begin(); it != notifications.end(); ) {
if (it->second->hWndPopup != NULL)
PUDeletePopup(it->second->hWndPopup); // close popup