[Libreoffice-commits] online.git: wsd/DocumentBroker.cpp
Michael Meeks
michael.meeks at collabora.com
Fri Jan 12 16:17:32 UTC 2018
wsd/DocumentBroker.cpp | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 9335f6ff128b56876f5e7ef37b7983baa4d5b152
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
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index d2d627a3..97ef771f 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -298,6 +298,13 @@ void DocumentBroker::pollThread()
_poll->continuePolling() << ", ShutdownRequestFlag: " << ShutdownRequestFlag <<
", TerminationFlag: " << TerminationFlag << ", closeReason: " << _closeReason << ". Flushing socket.");
+ 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