Fix a race on Limits::ponder
[stockfish] / src / thread.cpp
index 86fce6aa0c20020b6c54666c874a5231793d6c9e..0b851d6a6e0b5f0f48d5535aea3a06cd5c4d909d 100644 (file)
@@ -187,7 +187,7 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
 
   main()->wait_for_search_finished();
 
-  stopOnPonderhit = stop = false;
+  ponder = stopOnPonderhit = stop = false;
   Search::Limits = limits;
   Search::RootMoves rootMoves;