From 29f7fab2a9227055fe643517aa7abbb22923455f Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 11 Jan 2010 11:15:23 +0100 Subject: [PATCH] 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 5a98a7d6..975a2fcc 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -850,7 +850,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