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

Andras Timar andras.timar at collabora.com
Tue Jun 21 14:16:16 UTC 2016


 loolwsd/LOOLWSD.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bc4633a2a13e3608f71cd558fca5625d4cd711b7
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Jun 21 16:15:31 2016 +0200

    loolwsd: avoid NotFoundException when per_document.max_concurrency is missing (old config)

diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index b194ea2..490176a 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -1275,7 +1275,7 @@ void LOOLWSD::initialize(Application& self)
         NumPreSpawnedChildren = config().getUInt("num_prespawn_children", 1);
     }
 
-    const auto maxConcurrency = config().getInt("per_document.max_concurrency");
+    const auto maxConcurrency = config().getInt("per_document.max_concurrency", 4);
     if (maxConcurrency > 0)
     {
         setenv("MAX_CONCURRENCY", std::to_string(maxConcurrency).c_str(), 1);


More information about the Libreoffice-commits mailing list