From c86b91c5f00811c2a9f080e9e2e74ac2cb7af8c5 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 4 Sep 2024 12:14:20 -0700 Subject: [PATCH] Fix condition where settings may be applied with multithreading is disabled --- service/OneService.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service/OneService.cpp b/service/OneService.cpp index 5a05c72c..ff79c6f8 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2664,6 +2664,11 @@ public: } setUpMultithreading(); } + else { + // Force values in case the user accidentally defined them with multicore disabled + _concurrency = 1; + _cpuPinningEnabled = false; + } #endif #ifndef ZT_SDK