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:
Marco Costalba
2010-01-11 11:15:23 +01:00
parent 2af986bf31
commit 29f7fab2a9
+1 -1
View File
@@ -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