[Libreoffice-commits] online.git: loolwsd/DocumentBroker.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri Nov 4 05:05:10 UTC 2016


 loolwsd/DocumentBroker.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 84fb2d43fbc60c19935a6220c3ce615a7f742950
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Thu Nov 3 23:05:48 2016 -0400

    loolwsd: warn if sessions remain by ~DocumentBroker
    
    Change-Id: I03be11b02af7560f934b138e86f8857fd9870a60
    Reviewed-on: https://gerrit.libreoffice.org/30550
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/DocumentBroker.cpp b/loolwsd/DocumentBroker.cpp
index a332af6..d19bfdd 100644
--- a/loolwsd/DocumentBroker.cpp
+++ b/loolwsd/DocumentBroker.cpp
@@ -171,7 +171,10 @@ DocumentBroker::~DocumentBroker()
                 << "] destroyed with " << _sessions.size()
                 << " sessions left." << Log::end;
 
-//    assert(_sessions.empty());
+    if (!_sessions.empty())
+    {
+        LOG_WRN("DocumentBroker still has unremoved sessions.");
+    }
 }
 
 bool DocumentBroker::load(const std::string& sessionId, const std::string& jailId)


More information about the Libreoffice-commits mailing list