Fix #1048... kind of. Should the rc interface be able to accept more than 1 connectio...
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 11 Feb 2007 01:31:19 +0000 (01:31 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 11 Feb 2007 01:31:19 +0000 (01:31 +0000)
modules/control/rc.c

index 4f1d26c..c43b05c 100644 (file)
@@ -502,6 +502,11 @@ static void Run( intf_thread_t *p_intf )
         {
             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;
+            }
         }
 
         b_complete = ReadCommand( p_intf, p_buffer, &i_size );