]> git.sesse.net Git - vlc/commitdiff
Close telnet connection in case of error (fixes #995)
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 15 Feb 2007 16:25:16 +0000 (16:25 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 15 Feb 2007 16:25:16 +0000 (16:25 +0000)
modules/control/telnet.c

index b2201a573c2f322524a180d07c09b4fba7002457..72ae6f61d9308341789ed1c66aa272092826085f 100644 (file)
@@ -390,7 +390,7 @@ static void Run( intf_thread_t *p_intf )
                                    cl->i_mode + 2 );
                 }
 
-                if( i_recv == 0 )
+                if( i_recv <= 0 )
                 {
                     net_Close( cl->fd );
                     TAB_REMOVE( p_intf->p_sys->i_clients ,