projects
/
stockfish
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix pondering
[stockfish]
/
src
/
search.cpp
diff --git
a/src/search.cpp
b/src/search.cpp
index e2cf76b81b7d97fc312de720bf8a41c88c068e6e..9f2786230477737160147feba907bb5fed0ed02b 100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-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
&& !Signals.failedLowAtRoot
{
bool stillAtFirstMove = Signals.firstRootMove
&& !Signals.failedLowAtRoot