[vlc-devel] [PATCH 1/2] compat: cancel association of network events before close

Hannes Domani ssbssa at yahoo.de
Wed Jul 15 20:57:06 CEST 2015


---
 compat/poll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compat/poll.c b/compat/poll.c
index 3fa4e7a..fa94c93 100644
--- a/compat/poll.c
+++ b/compat/poll.c
@@ -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)
-- 
2.4.5




More information about the vlc-devel mailing list