mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 11:39:15 +00: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:
parent
f30f384757
commit
ce5b972736
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void uci_loop(const string& args) {
|
||||||
if (Search::Signals.stopOnPonderhit)
|
if (Search::Signals.stopOnPonderhit)
|
||||||
{
|
{
|
||||||
Search::Signals.stop = true;
|
Search::Signals.stop = true;
|
||||||
Threads.wait_for_search_finished(); // Wake up if is sleeping
|
Threads.main_thread()->wake_up(); // Could be sleeping
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue