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,