Merge 657b6fa546e630aaca415fa20f97706de4d7fb15 into 7958b3048fa1e85ab5a71f18a07c24e1b1e64f1e

This commit is contained in:
Stjepan Glavina 2020-12-01 23:56:08 +08:00 committed by GitHub
commit d2c654b842
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,13 @@ static inline int port__feed_events(port_state_t* port_state,
(IO_STATUS_BLOCK*) iocp_events[i].lpOverlapped;
struct epoll_event* ev = &epoll_events[epoll_event_count];
epoll_event_count += sock_feed_event(port_state, io_status_block, ev);
if (io_status_block)
epoll_event_count += sock_feed_event(port_state, io_status_block, ev);
else {
ev->events = 0;
ev->data.u64 = 0;
epoll_event_count += 1;
}
}
return epoll_event_count;