Przeglądaj źródła

Fix condition where settings may be applied with multithreading is disabled

Joseph Henry 10 miesięcy temu
rodzic
commit
c86b91c5f0
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      service/OneService.cpp

+ 5 - 0
service/OneService.cpp

@@ -2664,6 +2664,11 @@ public:
 			}
 			}
 			setUpMultithreading();
 			setUpMultithreading();
 		}
 		}
+		else {
+			// Force values in case the user accidentally defined them with multicore disabled
+			_concurrency = 1;
+			_cpuPinningEnabled = false;
+		}
 #endif
 #endif
 
 
 #ifndef ZT_SDK
 #ifndef ZT_SDK