]> git.sesse.net Git - stockfish/blobdiff - src/benchmark.cpp
Be sure we exit while loop with lock held
[stockfish] / src / benchmark.cpp
index d79726497e085d3bef9d0f80b695a9b4d54b405b..3abcda62f75e2a2fe87adba4878e4f1d715870c6 100644 (file)
@@ -155,7 +155,7 @@ void benchmark(const string& commandLine) {
       cerr << "\nBench position: " << cnt << '/' << positions.size() << endl << endl;
       if (limitType == "perft")
           totalNodes += perft(pos, maxDepth * OnePly);
-      else if (!think(pos, true, false, 0, dummy, dummy, 0, maxDepth, maxNodes, secsPerPos, moves))
+      else if (!think(pos, false, false, 0, dummy, dummy, 0, maxDepth, maxNodes, secsPerPos, moves))
           break;
       totalNodes += nodes_searched();
   }