mirror of
https://github.com/janet-lang/janet
synced 2024-11-17 22:24:49 +00:00
Ignore IOCP where the event failed to deque.
This commit is contained in:
parent
ae642ceca0
commit
dccb60ba35
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user