X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=d86f249365f8ed318f70359541fff404862f8cf2;hp=4eaf2e5ee07c2caea5ce159be013a68a6451d94c;hb=c465f4c4df1a8ad3d5c1e3759c6aa27b777b8a77;hpb=8737b26a23afb36d70cb32e3d53eeac7239685bf diff --git a/src/search.cpp b/src/search.cpp index 4eaf2e5e..d86f2493 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1588,7 +1588,7 @@ void Thread::idle_loop() { // particular we need to avoid a deadlock in case a master thread has, // in the meanwhile, allocated us and sent the wake_up() call before we // had the chance to grab the lock. - if (!is_searching && Threads.sleepWhileIdle) + if (!is_searching && !do_exit) sleepCondition.wait(mutex); mutex.unlock();