mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user