summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-04 21:02:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-04 21:02:56 +0300
commit1b89cbba1f3bc00ea24a8414b2e670c582ac5fc4 (patch)
tree76ac43351cbbdbece75774d6f7bbf1e89b6cdca8 /protocols/FacebookRM/src/json.cpp
parent5b32a855e518f67589fd49837795a605a19badce (diff)
Facebook: switch to mir_cs instead of custom lock
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 5ce92f5441..8ed8d5f5b7 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -249,7 +249,7 @@ int FacebookProto::ParseNotifications(std::string *data, std::map< std::string,
bool FacebookProto::IgnoreDuplicates(const std::string &mid)
{
- ScopedLock s(facy.send_message_lock_);
+ mir_cslock s(facy.send_message_lock_);
std::map<std::string, int>::iterator it = facy.messages_ignore.find(mid);
if (it != facy.messages_ignore.end()) {
@@ -996,7 +996,7 @@ int FacebookProto::ParseMessages(std::string *pData, std::vector<facebook_messag
NotifyEvent(m_tszUserName, ptrW(mir_utf8decodeW(text.c_str())), hContact, EVENT_TICKER, &url);
}
else if (t == "notifications_read" || t == "notifications_seen") { // revised 5.3.2017
- ScopedLock s(facy.notifications_lock_);
+ mir_cslock s(facy.notifications_lock_);
const JSONNode &alerts = it["alert_ids"];
for (auto &itAlerts : alerts) {