[*] AuLoop: Fixed missing logic in a fast path

This commit is contained in:
Reece Wilson 2023-12-01 12:16:47 +00:00
parent cbcd55ce8e
commit 3f7f2639c4

View File

@ -109,14 +109,22 @@ namespace Aurora::IO::Loop
return false; return false;
} }
bool bStatus {};
if (uTimeoutMS) if (uTimeoutMS)
{ {
return pSource->WaitOn(uTimeoutMS.value()); bStatus = pSource->WaitOn(uTimeoutMS.value());
} }
else else
{ {
return pSource->IsSignaled(); bStatus = pSource->IsSignaled();
} }
if (bStatus)
{
signaled.push_back(pSource);
}
return bStatus;
} }
auto uTimeoutEnd = uTimeoutMS ? auto uTimeoutEnd = uTimeoutMS ?