X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=9f5a13f8624dac701d3827ee0d2beefca76e8cf4;hp=ab20d781796a7b602e3048431447ad409ce7041b;hb=e4efc8b74159a77e77d0d6b53c9ef7215cfdcb9a;hpb=58c2fe391d869e417e568cd47eea77d46a408f9b;ds=sidebyside diff --git a/src/thread.cpp b/src/thread.cpp index ab20d781..9f5a13f8 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -227,9 +227,10 @@ void ThreadsManager::read_uci_options() { void ThreadsManager::wake_up() { - for (int i = 1; i < size(); i++) // Main thread is already running + for (int i = 0; i < size(); i++) { threads[i]->do_sleep = false; + threads[i]->maxPly = 0; if (!useSleepingThreads) threads[i]->wake_up();