diff --git a/src/search.cpp b/src/search.cpp index 54266914..46542560 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2788,7 +2788,7 @@ namespace { #if !defined(_MSC_VER) pthread_mutex_lock(&WaitLock); - if (Idle || threadID >= ActiveThreads) + if (AllThreadsShouldSleep || threadID >= ActiveThreads) pthread_cond_wait(&WaitCond, &WaitLock); pthread_mutex_unlock(&WaitLock);