Common/Timer: Add missing return when timer wait succeeds

This commit is contained in:
Connor McLaughlin 2021-04-12 20:26:50 +10:00
parent ca9dee85a2
commit 62718b3c50

View file

@ -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.