Fix a race in pondering mode
[stockfish] / src / uci.cpp
index 8127a742c8ea4907fa41dbf1c5eb295aae651ca4..72e3d0bd0cd4600f5c1694c884ff769b1a1d6a66 100644 (file)
@@ -82,10 +82,9 @@ void uci_loop() {
           Search::Limits.ponder = false; // FIXME racing
 
           if (Search::Signals.stopOnPonderhit)
-          {
               Search::Signals.stop = true;
-              Threads[0].wake_up(); // In case is waiting for stop or ponderhit
-          }
+
+          Threads[0].wake_up(); // In case is waiting for stop or ponderhit
       }
 
       else if (token == "go")