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

Handle lack of listener in net_Accept

parent c2b02955
...@@ -261,8 +261,11 @@ next_ai: /* failure */ ...@@ -261,8 +261,11 @@ next_ai: /* failure */
***************************************************************************** *****************************************************************************
* Accept a connection on a set of listening sockets and return it * Accept a connection on a set of listening sockets and return it
*****************************************************************************/ *****************************************************************************/
int __net_Accept( vlc_object_t *p_this, int pi_fd[], mtime_t i_wait ) int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait )
{ {
if( pi_fd == NULL )
return -1;
vlc_bool_t b_block = (i_wait < 0); vlc_bool_t b_block = (i_wait < 0);
while( !p_this->b_die ) while( !p_this->b_die )
......
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