From 729c9f8508ba8fe4235d9cd9be543457aaeda44a Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Tue, 12 Sep 2023 22:06:55 +0100 Subject: [PATCH] [*] Ensure WaitFor always respects 0 timeouts, no matter the flags --- Source/Threading/AuWaitFor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Threading/AuWaitFor.cpp b/Source/Threading/AuWaitFor.cpp index 676b542c..8533afc6 100644 --- a/Source/Threading/AuWaitFor.cpp +++ b/Source/Threading/AuWaitFor.cpp @@ -118,7 +118,8 @@ namespace Aurora::Threading qwTimeoutAbs = AuMSToNS(uTimeout); } - if (!(uFlags & kWaitForFlagTimeoutIsAbsolute)) + if ((!(uFlags & kWaitForFlagTimeoutIsAbsolute)) && + (uTimeout)) { qwTimeoutAbs += AuTime::SteadyClockNS(); }