Commit 19ed4ded authored by dionoea's avatar dionoea

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 )
p_intf->p_sys->i_socket == -1 )
{
p_intf->p_sys->i_socket =
net_Accept( p_intf, p_intf->p_sys->pi_socket_listen, 0 );
if( p_intf->p_sys->i_socket == -1 )
{
msleep( INTF_IDLE_SLEEP );
continue;
}
net_Accept( p_intf, p_intf->p_sys->pi_socket_listen,
INTF_IDLE_SLEEP );
if( p_intf->p_sys->i_socket == -1 ) continue;
}
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