[vlc-commits] compat: cancel association of network events before close
Hannes Domani
git at videolan.org
Mon Jul 20 19:37:21 CEST 2015
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Wed Jul 15 20:57:06 2015 +0200| [8b7059359c72dbbf742ad90528ba17410354f76f] | committer: Rémi Denis-Courmont
compat: cancel association of network events before close
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b7059359c72dbbf742ad90528ba17410354f76f
---
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)
More information about the vlc-commits
mailing list