Commit a45ba22e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

net_Write: fix polling

parent 8689e8be
...@@ -429,7 +429,7 @@ ssize_t __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs, ...@@ -429,7 +429,7 @@ ssize_t __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
ufd[0].revents = ufd[1].revents = 0; ufd[0].revents = ufd[1].revents = 0;
if (poll (ufd, 1, -1) == -1) if (poll (ufd, sizeof (ufd) / sizeof (ufd[0]), -1) == -1)
{ {
if (errno == EINTR) if (errno == EINTR)
continue; continue;
......
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