From 7ad59d9ac9cbeae8b95843a720a53c99bb1f0d3b Mon Sep 17 00:00:00 2001 From: Gary Linscott Date: Mon, 24 Nov 2014 08:49:53 +0800 Subject: [PATCH] Fix pondering The UCI specification states that an engine can never exit the search while pondering. No functional change. Resolves #118 --- src/search.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index e2cf76b8..9f278623 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1533,7 +1533,11 @@ void check_time() { 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 && !Signals.failedLowAtRoot -- 2.39.2