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

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri Apr 29 03:40:09 UTC 2016


 loolwsd/LOOLWSD.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit afa3e7c4ed6d1d23f182d18882d2b20fd7f8eabe
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Thu Apr 28 23:32:33 2016 -0400

    loolwsd: log error on failure, not success
    
    Change-Id: Iac417c3779f3879697d056b5e402e91902bfd168
    Reviewed-on: https://gerrit.libreoffice.org/24483
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 395770f..5de9afc 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -607,7 +607,7 @@ private:
                 // Use auto-save to save only when there are modifications since last save.
                 // We also need to wait until the save notification reaches us
                 // and Storage persists the document.
-                if (docBroker->autoSave(true, COMMAND_TIMEOUT_MS))
+                if (!docBroker->autoSave(true, COMMAND_TIMEOUT_MS))
                 {
                     Log::error("Auto-save before closing failed.");
                 }


More information about the Libreoffice-commits mailing list