summaryrefslogtreecommitdiff
path: root/loolwsd/LOOLWSD.cpp
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-11-07 18:21:54 -0500
committerAshod Nakashian <ashnakash@gmail.com>2016-11-08 00:21:37 +0000
commit0164df61a59ee95396c29634dea0370dae9ee2b6 (patch)
treed3c4bbbe3d81c148261f01310fff311e44a766f9 /loolwsd/LOOLWSD.cpp
parentd8c2bb919526688f20be6d9f9eae96edb2cb3f59 (diff)
loolwsd: alertAllUsersOfDocument must be called while holding lock
Change-Id: I266a61402973c9418eb293d2f66601d00be76754 Reviewed-on: https://gerrit.libreoffice.org/30675 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'loolwsd/LOOLWSD.cpp')
-rw-r--r--loolwsd/LOOLWSD.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}
}