Fix pondering

The UCI specification states that an engine can never exit the search
while pondering.

No functional change.

Resolves #118
This commit is contained in:
Gary Linscott
2014-11-24 08:49:53 +08:00
parent 48127fe5d3
commit 7ad59d9ac9

View File

@@ -1533,7 +1533,11 @@ void check_time() {
dbg_print(); dbg_print();
} }
if (Limits.use_time_management() && !Limits.ponder) // An engine may not stop pondering until told so by the GUI
if (Limits.ponder)
return;
if (Limits.use_time_management())
{ {
bool stillAtFirstMove = Signals.firstRootMove bool stillAtFirstMove = Signals.firstRootMove
&& !Signals.failedLowAtRoot && !Signals.failedLowAtRoot