浏览代码

Fix condition where settings may be applied with multithreading is disabled

Joseph Henry 10 月之前
父节点
当前提交
c86b91c5f0
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      service/OneService.cpp

+ 5 - 0
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