From 62718b3c50f79835488cb8bf51e0485896ab5c14 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 12 Apr 2021 20:26:50 +1000 Subject: [PATCH] Common/Timer: Add missing return when timer wait succeeds --- src/common/timer.cpp | 3 +++ 1 file changed, 3 insertions(+) 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.