1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00: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:
Marco Costalba 2010-01-11 11:15:23 +01:00
parent 55745f4105
commit 638f3d31cc

View file

@ -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