Fix issue where timethread wakes too slowly

Former-commit-id: 60f875f5eb7cb541e537f0f440ce8d5aeac57862
This commit is contained in:
John Sully 2021-03-26 02:54:33 +00:00
parent ace6ad4752
commit 352bde8d89

View File

@ -6091,6 +6091,7 @@ void OnTerminate()
}
void wakeTimeThread() {
updateCachedTime();
std::lock_guard<std::mutex> lock(time_thread_mutex);
sleeping_threads--;
serverAssert(sleeping_threads >= 0);