diff --git a/Source/Loop/LoopQueue.NT.cpp b/Source/Loop/LoopQueue.NT.cpp index ebe2e3a7..64d6c25e 100644 --- a/Source/Loop/LoopQueue.NT.cpp +++ b/Source/Loop/LoopQueue.NT.cpp @@ -653,12 +653,20 @@ namespace Aurora::Loop else { auto now = AuTime::CurrentInternalClockMS(); - if (timeout && timeout <= now) - { - return false; - } + AuUInt sleepDelta; - auto sleepDelta = timeout - now; + if (timeout) + { + if (timeout <= now) + { + return false; + } + sleepDelta = timeout - now; + } + else + { + sleepDelta = 0; + } if (this->bIsWinLoop_) {