Fix pondering
[stockfish] / src / search.cpp
index e2cf76b81b7d97fc312de720bf8a41c88c068e6e..9f2786230477737160147feba907bb5fed0ed02b 100644 (file)
@@ -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