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

Henry Castro hcastro at collabora.com
Wed May 11 04:35:44 UTC 2016


 loolwsd/MasterProcessSession.cpp |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit c1849e25bbae48e204e5bdcebae364b530706771
Author: Henry Castro <hcastro at collabora.com>
Date:   Wed May 11 00:36:36 2016 -0400

    loolwsd: send "editlock" when "status" was cached

diff --git a/loolwsd/MasterProcessSession.cpp b/loolwsd/MasterProcessSession.cpp
index 4b6a045..9cd67ff 100644
--- a/loolwsd/MasterProcessSession.cpp
+++ b/loolwsd/MasterProcessSession.cpp
@@ -401,6 +401,13 @@ bool MasterProcessSession::getStatus(const char *buffer, int length)
     if (!status.empty())
     {
         sendTextFrame(status);
+
+        // And let clients know if they hold the edit lock.
+        std::string message = "editlock: ";
+        message += std::to_string(isEditLocked());
+        Log::debug("Forwarding [" + message + "] in response to status.");
+        sendTextFrame(message);
+
         return true;
     }
 


More information about the Libreoffice-commits mailing list