X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=9f5a13f8624dac701d3827ee0d2beefca76e8cf4;hb=b978eb05dcce5eb874bb45e30af854d332b9738f;hp=ab20d781796a7b602e3048431447ad409ce7041b;hpb=58c2fe391d869e417e568cd47eea77d46a408f9b;p=stockfish 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();