Force time check on TB probe in search.
[stockfish] / src / search.cpp
index 08bf90f89845673b79b8197c40e17bab2eccc119..f4e1da977990f18d2b77e988cbbc4c1c0798370e 100644 (file)
@@ -683,6 +683,10 @@ namespace {
             TB::ProbeState err;
             TB::WDLScore wdl = Tablebases::probe_wdl(pos, &err);
 
+            // Force check of time on the next occasion
+            if (thisThread == Threads.main())
+                static_cast<MainThread*>(thisThread)->callsCnt = 0;
+
             if (err != TB::ProbeState::FAIL)
             {
                 thisThread->tbHits.fetch_add(1, std::memory_order_relaxed);