]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Use only one ConditionVariable to sync UI
[stockfish] / src / uci.cpp
index b7127b758153c9fd008563f2f7412a5802ebdfad..7a0ead60c09de931b0275470501fdbae30c33e9c 100644 (file)
@@ -205,7 +205,7 @@ void UCI::loop(int argc, char* argv[]) {
 
   } while (token != "quit" && argc == 1); // Passed args have one-shot behaviour
 
-  Threads.wait_for_think_finished(); // Cannot quit whilst the search is running
+  Threads.main()->join(); // Cannot quit whilst the search is running
 }