ソースを参照

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