wsd/DocumentBroker.hpp | 3 --- wsd/LOOLWSD.cpp | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-)
New commits: commit 5bd124499ce03d2c0b30165c99468f7a00646648 Author: Pranav Kant <pran...@collabora.co.uk> Date: Fri Feb 2 00:36:53 2018 +0530 wsd: Bin superfluous public method Passing the reason to stop() method also does the same thing. Change-Id: I16b648495382c14f31839acca815835df76d8dca diff --git a/wsd/DocumentBroker.hpp b/wsd/DocumentBroker.hpp index 1571e426..a398e701 100644 --- a/wsd/DocumentBroker.hpp +++ b/wsd/DocumentBroker.hpp @@ -349,9 +349,6 @@ public: /// Sends a message to all sessions void broadcastMessage(const std::string& message); - /// Sets the reason for closing document; - void setCloseReason(const std::string& closeReason) { _closeReason = closeReason; } - private: /// Shutdown all client connections with the given reason. diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index eecb793f..34482638 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -1555,8 +1555,7 @@ private: { auto lock = docBroker->getLock(); docBroker->assertCorrectThread(); - docBroker->setCloseReason("docdisconnected"); - docBroker->stop("Lost connection with LOKit."); + docBroker->stop("docisdisconnected"); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits