Skip to content

Commit 5d1e4af

Browse files
committed
Merge branch 'supported'
2 parents b0b05ec + 316ccfd commit 5d1e4af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exch/ews/ews.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,10 @@ bool EWSPlugin::unsubscribe(detail::SubscriptionKey subscriptionKey,
10811081
*/
10821082
void EWSPlugin::unsubscribe(const detail::ExmdbSubscriptionKey& key) const
10831083
{
1084-
subscriptions.erase(key);
1084+
{
1085+
std::unique_lock lk(subscriptionLock);
1086+
subscriptions.erase(key);
1087+
}
10851088
exmdb.unsubscribe_notification(key.first.c_str(), key.second);
10861089
}
10871090

0 commit comments

Comments
 (0)