Fix condition where settings may be applied with multithreading is disabled

This commit is contained in:
Joseph Henry 2024-09-04 12:14:20 -07:00
parent e42848d37d
commit c86b91c5f0
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344

View File

@ -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