Merge pull request #110003 from WinnerWind/fix-zero-threadcount

Revert "Prevent crashing if `max_threads` is zero."
This commit is contained in:
Thaddeus Crews 2025-08-27 13:39:44 -05:00
commit 221731f30e
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
2 changed files with 2 additions and 2 deletions

View file

@ -823,7 +823,7 @@ void WorkerThreadPool::init(int p_thread_count, float p_low_priority_task_ratio)
runlevel = RUNLEVEL_NORMAL;
if (p_thread_count <= 0) {
if (p_thread_count < 0) {
p_thread_count = OS::get_singleton()->get_default_thread_pool_size();
}