Commit 19ed4ded authored by Antoine Cellerier's avatar Antoine Cellerier

Use net_Accept's timeout param instead of a call to msleep.

parent 191053b8
...@@ -501,12 +501,9 @@ static void Run( intf_thread_t *p_intf ) ...@@ -501,12 +501,9 @@ static void Run( intf_thread_t *p_intf )
p_intf->p_sys->i_socket == -1 ) p_intf->p_sys->i_socket == -1 )
{ {
p_intf->p_sys->i_socket = p_intf->p_sys->i_socket =
net_Accept( p_intf, p_intf->p_sys->pi_socket_listen, 0 ); net_Accept( p_intf, p_intf->p_sys->pi_socket_listen,
if( p_intf->p_sys->i_socket == -1 ) INTF_IDLE_SLEEP );
{ if( p_intf->p_sys->i_socket == -1 ) continue;
msleep( INTF_IDLE_SLEEP );
continue;
}
} }
b_complete = ReadCommand( p_intf, p_buffer, &i_size ); b_complete = ReadCommand( p_intf, p_buffer, &i_size );
......
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