diff --git a/src/uci.cpp b/src/uci.cpp index 1ba4b757..7f783f97 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -117,8 +117,15 @@ void go(Position *pos) } #endif - pos->set(StartFEN, Threads.main()); - Threads.main()->us = BLACK; // WAR + while (true) { + if (Threads.main()->searching == true) { + continue; + } + + pos->set(StartFEN, Threads.main()); + Threads.main()->us = BLACK; // WAR + break; + } #else return; #endif