wsd/DocumentBroker.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 99844c1c924e6c2de8011c9f680151f228e74f61
Author: Ashod Nakashian <[email protected]>
Date: Tue Mar 28 01:05:18 2017 -0400
wsd: protect DocBrokers session member
It is accessed from the PrisonerPoll
when cleaning up.
Change-Id: Ieb57cdd63cc08632bcdaa4fc5ccd4a1a53c06fe7
Reviewed-on: https://gerrit.libreoffice.org/35788
Reviewed-by: Ashod Nakashian <[email protected]>
Tested-by: Ashod Nakashian <[email protected]>
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 32f55aae..83e00329 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -525,6 +525,8 @@ bool DocumentBroker::saveToStorageInternal(const
std::string& sessionId,
return true;
}
+ std::unique_lock<std::mutex> lock(_mutex);
+
const auto it = _sessions.find(sessionId);
if (it == _sessions.end())
{
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits