[Libreoffice-commits] online.git: wsd/ClientSession.cpp

Pranav Kant pranavk at collabora.co.uk
Wed Feb 7 13:44:34 UTC 2018


 wsd/ClientSession.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bd7b2b833c064a64d830d1b032cb8c98e85cd2a9
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Feb 2 13:08:25 2018 +0530

    wsd: Don't request closing here, just stop the broker
    
    Asking the doc broker to close means that it will save the current
    document to storage before shutting down. But we don't want that because
    storing the current document to storage means overwriting the document
    which has been changed underneath us.
    
    Change-Id: I8df45d2f0cf3f65936dc3030f483e52fd1703146
    Reviewed-on: https://gerrit.libreoffice.org/49134
    Reviewed-by: pranavk <pranavk at collabora.co.uk>
    Tested-by: pranavk <pranavk at collabora.co.uk>

diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 8d727247..d94a8467 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -190,7 +190,7 @@ bool ClientSession::_handleInput(const char *buffer, int length)
             LOG_DBG("Document marked as changed in storage and user ["
                     << getUserId() << ", " << getUserName()
                     << "] wants to refresh the document for all.");
-            docBroker->closeDocument("documentconflict " + getUserName());
+            docBroker->stop("documentconflict " + getUserName());
         }
 
         return true;


More information about the Libreoffice-commits mailing list