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

New commits:
commit a9d76cfd4cd36e89be1dad042ad1a95929b3f944
Author: Jan Holesovsky <[email protected]>
Date:   Wed Jun 7 16:32:58 2017 +0200

    Don't crash on Shift+reload.
    
    Change-Id: I1706fc0ff748fa74f2d2b29f103c167acf36c706
    Reviewed-on: https://gerrit.libreoffice.org/38515
    Reviewed-by: Ashod Nakashian <[email protected]>
    Tested-by: Ashod Nakashian <[email protected]>

diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index ed15e8c1..7c22b04d 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -542,7 +542,10 @@ bool ClientSession::handleKitToClientMessage(const char* 
buffer, const int lengt
                 // Save to Storage and log result.
                 std::string id = getId();
                 docBroker->saveToStorage(id, success, result);
-                forwardToClient(payload);
+
+                if (!isCloseFrame())
+                    forwardToClient(payload);
+
                 return true;
             }
         }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to