Ignore IOCP where the event failed to deque.

This commit is contained in:
Calvin Rose 2023-09-24 12:53:06 -07:00
parent ae642ceca0
commit dccb60ba35
1 changed files with 5 additions and 1 deletions

View File

@ -1535,7 +1535,11 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp to) {
}
BOOL result = GetQueuedCompletionStatus(janet_vm.iocp, &num_bytes_transfered, &completionKey, &overlapped, (DWORD) waittime);
if (result || overlapped) {
if (!result) {
return;
}
if (overlapped) {
if (0 == completionKey) {
/* Custom event */
JanetSelfPipeEvent *response = (JanetSelfPipeEvent *)(overlapped);