]> git.sesse.net Git - stockfish/blobdiff - src/uci.cpp
Improve testing coverage, remove unused code
[stockfish] / src / uci.cpp
index f893bd9cece7becbc36f38c15ef4155386f07a4e..ffe5e0576ea5c9af85914485d17f4e8e9b5e38c5 100644 (file)
@@ -98,6 +98,8 @@ namespace {
 
   void setoption(istringstream& is) {
 
+    Threads.main()->wait_for_search_finished();
+
     string token, name, value;
 
     is >> token; // Consume the "name" token