From a1a2d482d7bf1f72f28cb398a450a77e15ee47b7 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 21 Oct 2023 16:09:45 +0100 Subject: [PATCH] [*] everything before semaphore cast --- Source/IO/Loop/Loop.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/IO/Loop/Loop.cpp b/Source/IO/Loop/Loop.cpp index 0b18c5d3..3695f161 100644 --- a/Source/IO/Loop/Loop.cpp +++ b/Source/IO/Loop/Loop.cpp @@ -74,17 +74,17 @@ namespace Aurora::IO::Loop return; } - if (auto pSemaphore = AuDynamicCast(pLoopSource)) - { - pSemaphore->AddOne(); - return; - } - if (auto pEvent = AuDynamicCast(pLoopSource)) { pEvent->Set(); return; } + + if (auto pSemaphore = AuDynamicCast(pLoopSource)) + { + pSemaphore->AddOne(); + return; + } } AUKN_SYM bool WaitMultipleLoopSources(const AuList> &lsList,