Commit 8b705935 authored by Hannes Domani's avatar Hannes Domani Committed by Rémi Denis-Courmont

compat: cancel association of network events before close

Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 21125e19
......@@ -200,6 +200,7 @@ int poll(struct pollfd *fds, unsigned nfds, int timeout)
if (WSAEnumNetworkEvents(fds[i].fd, evts[i], &ne))
memset(&ne, 0, sizeof (ne));
WSAEventSelect(fds[i].fd, evts[i], 0);
WSACloseEvent(evts[i]);
if (ne.lNetworkEvents & FD_CONNECT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment