diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-11-07 18:21:54 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2016-11-08 00:21:37 +0000 |
commit | 0164df61a59ee95396c29634dea0370dae9ee2b6 (patch) | |
tree | d3c4bbbe3d81c148261f01310fff311e44a766f9 | |
parent | d8c2bb919526688f20be6d9f9eae96edb2cb3f59 (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>
-rw-r--r-- | loolwsd/LOOLWSD.cpp | 1 |
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); } } |