From 0164df61a59ee95396c29634dea0370dae9ee2b6 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Mon, 7 Nov 2016 18:21:54 -0500 Subject: loolwsd: alertAllUsersOfDocument must be called while holding lock Change-Id: I266a61402973c9418eb293d2f66601d00be76754 Reviewed-on: https://gerrit.libreoffice.org/30675 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- loolwsd/LOOLWSD.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'loolwsd/LOOLWSD.cpp') diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp index 6334a2cb3..39a32391c 100644 --- a/loolwsd/LOOLWSD.cpp +++ b/loolwsd/LOOLWSD.cpp @@ -2123,6 +2123,7 @@ void alertAllUsers(const std::string& cmd, const std::string& kind) for (auto& brokerIt : DocBrokers) { + auto lock = brokerIt.second->getLock(); brokerIt.second->alertAllUsersOfDocument(cmd, kind); } } -- cgit v1.2.3