From e42848d37dbb54c5bf8ac8474c0faed6d464bd00 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 4 Sep 2024 11:00:23 -0700 Subject: [PATCH] Fix bug for when no multithreaded config is given --- service/OneService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/OneService.cpp b/service/OneService.cpp index 8d4b5bdfd..5a05c72ce 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2653,7 +2653,7 @@ public: _portMappingEnabled = OSUtils::jsonBool(settings["portMappingEnabled"],true); #if defined(__LINUX__) || defined(__FreeBSD__) _multicoreEnabled = OSUtils::jsonBool(settings["multicoreEnabled"],false); - _concurrency = OSUtils::jsonInt(settings["concurrency"],0); + _concurrency = OSUtils::jsonInt(settings["concurrency"],1); _cpuPinningEnabled = OSUtils::jsonBool(settings["cpuPinningEnabled"],false); if (_multicoreEnabled) { unsigned int maxConcurrency = std::thread::hardware_concurrency();