]> git.sesse.net Git - vlc/commitdiff
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 4f1d26c1c2c1f1249fd361b4fb8c0f9323f47da0..c43b05c243760955b51e2d2dedae2581f4660166 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 );