[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3-0' - wsd/DocumentBroker.cpp
Michael Meeks
michael.meeks at collabora.com
Mon Jan 15 19:09:50 UTC 2018
wsd/DocumentBroker.cpp | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 0da449bbd9968fb580b90fbeb0672437b7f5f832
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri Jan 12 16:16:56 2018 +0000
Warn if we exit with a modified document around.
Change-Id: Ie38ab49c66358f674e14820a6ffa993c25aa9e92
Reviewed-on: https://gerrit.libreoffice.org/47822
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index f149f36c..6c6da1f5 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -297,6 +297,13 @@ void DocumentBroker::pollThread()
_poll->continuePolling() << ", ShutdownRequestFlag: " << ShutdownRequestFlag <<
", TerminationFlag: " << TerminationFlag << ".");
+ if (_isModified)
+ {
+ std::stringstream state;
+ dumpState(state);
+ LOG_ERR("DocumentBroker stopping although modified " << state.str());
+ }
+
// Flush socket data first.
const int flushTimeoutMs = POLL_TIMEOUT_MS * 2; // ~1000ms
const auto flushStartTime = std::chrono::steady_clock::now();
More information about the Libreoffice-commits
mailing list