mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-16 15:16:25 +08:00
Don't need to wait after a "ponderhit"
It is enough to wake up main thread. This is
a better fix than d033d5e06a.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -87,7 +87,7 @@ void uci_loop(const string& args) {
|
||||
if (Search::Signals.stopOnPonderhit)
|
||||
{
|
||||
Search::Signals.stop = true;
|
||||
Threads.wait_for_search_finished(); // Wake up if is sleeping
|
||||
Threads.main_thread()->wake_up(); // Could be sleeping
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user