[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/LOOLKit.cpp

Michael Meeks michael.meeks at collabora.com
Mon Aug 17 08:42:32 PDT 2015


 loolwsd/LOOLKit.cpp |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 04b8da43d42a6a37bbf0f1edb748990591f04dbc
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Mon Aug 17 16:52:09 2015 +0100

    Remove un-necessary lock.

diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp
index 9394e43..e47ca4d 100644
--- a/loolwsd/LOOLKit.cpp
+++ b/loolwsd/LOOLKit.cpp
@@ -89,8 +89,6 @@ static int prefixcmp(const char *str, const char *prefix)
 const int MASTER_PORT_NUMBER = 9981;
 const std::string CHILD_URI = "/loolws/child/";
 
-Poco::NamedMutex _namedMutexLOOL("loolwsd");
-
 int main(int argc, char** argv)
 {
     std::string loSubPath;
@@ -130,8 +128,6 @@ int main(int argc, char** argv)
 
     try
     {
-        _namedMutexLOOL.lock();
-
 #ifdef __APPLE__
         LibreOfficeKit *loKit(lok_init_2(("/" + loSubPath + "/Frameworks").c_str(), "file:///user"));
 #else
@@ -144,8 +140,6 @@ int main(int argc, char** argv)
             exit(-1);
         }
 
-        _namedMutexLOOL.unlock();
-
         // Open websocket connection between the child process and the
         // parent. The parent forwards us requests that it can't handle.
 


More information about the Libreoffice-commits mailing list