[Libreoffice-commits] online.git: loolwsd/LOOLKit.cpp
Pranav Kant
pranavk at collabora.co.uk
Mon Feb 8 14:38:21 UTC 2016
loolwsd/LOOLKit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5a31f99178e62e785eed2055e7cba2120eb2cebb
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Sun Feb 7 16:21:10 2016 +0530
loolwsd: Thread name should not be static
... as we can have multiple connections for same document.
Change-Id: Ic213299d6a4ba703f1e27cf252f3a10209f08148
Reviewed-on: https://gerrit.libreoffice.org/22204
Reviewed-by: Henry Castro <hcastro at collabora.com>
Tested-by: Henry Castro <hcastro at collabora.com>
diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp
index 763e21d..3ed6b3e 100644
--- a/loolwsd/LOOLKit.cpp
+++ b/loolwsd/LOOLKit.cpp
@@ -118,7 +118,7 @@ public:
void run() override
{
- static const std::string thread_name = "kit_ws_" + _session->getId();
+ const std::string thread_name = "kit_ws_" + _session->getId();
#ifdef __linux
if (prctl(PR_SET_NAME, reinterpret_cast<unsigned long>(thread_name.c_str()), 0, 0, 0) != 0)
Log::error("Cannot set thread name to " + thread_name + ".");
More information about the Libreoffice-commits
mailing list