wsd/DocumentBroker.cpp | 7 +++++++ 1 file changed, 7 insertions(+) New commits: commit 0da449bbd9968fb580b90fbeb0672437b7f5f832 Author: Michael Meeks <michael.me...@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 <ke...@collabora.com> Tested-by: Jan Holesovsky <ke...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits