1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-28 01:10:26 +00:00

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

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); BOOL result = GetQueuedCompletionStatus(janet_vm.iocp, &num_bytes_transfered, &completionKey, &overlapped, (DWORD) waittime);
if (result || overlapped) { if (!result) {
return;
}
if (overlapped) {
if (0 == completionKey) { if (0 == completionKey) {
/* Custom event */ /* Custom event */
JanetSelfPipeEvent *response = (JanetSelfPipeEvent *)(overlapped); JanetSelfPipeEvent *response = (JanetSelfPipeEvent *)(overlapped);