]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix previous patch in case of ponder
[stockfish] / src / search.cpp
index ec9c6b1d0507c77734f92fe8d3a7d067de2334d4..7804119febe3f613aeb76a89da3966ac62d43d46 100644 (file)
@@ -564,6 +564,7 @@ void Thread::search() {
                   Threads.stop = true;
           }
           else if (   Threads.increaseDepth
                   Threads.stop = true;
           }
           else if (   Threads.increaseDepth
+                   && !mainThread->ponder
                    && Time.elapsed() > Time.optimum() * fallingEval * reduction * bestMoveInstability * 0.6)
                    Threads.increaseDepth = false;
           else
                    && Time.elapsed() > Time.optimum() * fallingEval * reduction * bestMoveInstability * 0.6)
                    Threads.increaseDepth = false;
           else