From: Marco Costalba Date: Mon, 11 Jan 2010 10:15:23 +0000 (+0100) Subject: Do not wait when AbortSearch is set X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=638f3d31cc9a61ce3df2b685fef96f15e0afb940 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 --- diff --git a/src/search.cpp b/src/search.cpp index 3dbcb526..ea9240e5 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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