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

net_Read: break potential dead lock with waitall = true

parent 41dc3d2b
......@@ -314,7 +314,7 @@ net_Read (vlc_object_t *restrict p_this, int fd, const v_socket_t *vs,
p_buf = (char *)p_buf + n;
i_buflen -= n;
if (!waitall)
if (!waitall || i_buflen == 0)
break;
}
else /* n == 0 */
......
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