]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Async 'stop' command
[stockfish] / src / thread.cpp
index c98c7867ed3ab5964e123c2af5a6f51821582cf0..b599960528a00d2e67c0948d9a93146a04e14023 100644 (file)
@@ -404,7 +404,6 @@ void ThreadPool::wait_for_search_finished() {
 
   Thread* t = main_thread();
   t->mutex.lock();
-  t->sleepCondition.notify_one(); // In case is waiting for stop or ponderhit
   while (!t->do_sleep) sleepCondition.wait(t->mutex);
   t->mutex.unlock();
 }