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

net_Write: fix polling

(cherry picked from commit a45ba22e)
parent e58c3c22
......@@ -427,7 +427,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;
if (poll (ufd, 1, -1) == -1)
if (poll (ufd, sizeof (ufd) / sizeof (ufd[0]), -1) == -1)
{
if (errno == EINTR)
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