Don't log search info after a stop
[stockfish] / src / search.cpp
index 1131fae7e01cfe329d2769e615b0bbb879cf2b84..479710784021fc2e3daee473309d5ca20b897ce9 100644 (file)
@@ -467,7 +467,7 @@ namespace {
         if (SkillLevelEnabled && depth == 1 + SkillLevel)
             skillBest = do_skill_level();
 
-        if (Options["Use Search Log"])
+        if (!Signals.stop && Options["Use Search Log"])
              pv_info_to_log(pos, depth, bestValue, elapsed_time(), &RootMoves[0].pv[0]);
 
         // Filter out startup noise when monitoring best move stability