diff --git a/src/common/timer.cpp b/src/common/timer.cpp index 88ffdb6e5..fb323ccf1 100644 --- a/src/common/timer.cpp +++ b/src/common/timer.cpp @@ -105,7 +105,10 @@ void Timer::SleepUntil(Value value, bool exact) fti.QuadPart += diff; if (SetWaitableTimer(timer, &fti, 0, nullptr, nullptr, FALSE)) + { WaitForSingleObject(timer, INFINITE); + return; + } } // falling back to sleep... bad.