소스 검색

Fix condition where settings may be applied with multithreading is disabled

Joseph Henry 11 달 전
부모
커밋
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