X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=3a70c8f797fde7e299f9fa39d020dd9352d91d73;hp=2e3f9d5663718ad4cac483c1d46b630cc5888d36;hb=5c944fb3b46931262effc6628ca5eb58fa4aa172;hpb=c974d9ef3311c17810be63a3f68ffd44a4de3819 diff --git a/src/search.cpp b/src/search.cpp index 2e3f9d56..3a70c8f7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2594,6 +2594,7 @@ namespace { // instead of wasting CPU time polling for work. while (AllThreadsShouldSleep || threadID >= ActiveThreads) { + assert(!waitSp); assert(threadID != 0); threads[threadID].state = THREAD_SLEEPING;