mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Do not wait when AbortSearch is set
It means we have already received "stop" or "quit" commands. This fixes an hang in tactical test in Fritz GUI. Bug introduced by previous bug fix :-( Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -844,7 +844,7 @@ namespace {
|
||||
|
||||
// If we are pondering or in infinite search, we shouldn't print the
|
||||
// best move before we are told to do so.
|
||||
if (PonderSearch || InfiniteSearch)
|
||||
if (!AbortSearch && (PonderSearch || InfiniteSearch))
|
||||
wait_for_stop_or_ponderhit();
|
||||
else
|
||||
// Print final search statistics
|
||||
|
||||
Reference in New Issue
Block a user