mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
Common/Timer: Add missing return when timer wait succeeds
This commit is contained in:
parent
ca9dee85a2
commit
62718b3c50
|
@ -105,7 +105,10 @@ void Timer::SleepUntil(Value value, bool exact)
|
||||||
fti.QuadPart += diff;
|
fti.QuadPart += diff;
|
||||||
|
|
||||||
if (SetWaitableTimer(timer, &fti, 0, nullptr, nullptr, FALSE))
|
if (SetWaitableTimer(timer, &fti, 0, nullptr, nullptr, FALSE))
|
||||||
|
{
|
||||||
WaitForSingleObject(timer, INFINITE);
|
WaitForSingleObject(timer, INFINITE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// falling back to sleep... bad.
|
// falling back to sleep... bad.
|
||||||
|
|
Loading…
Reference in a new issue