Commit 6a07fcd8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Close telnet connection in case of error (fixes #995)

parent b19160b3
...@@ -390,7 +390,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -390,7 +390,7 @@ static void Run( intf_thread_t *p_intf )
cl->i_mode + 2 ); cl->i_mode + 2 );
} }
if( i_recv == 0 ) if( i_recv <= 0 )
{ {
net_Close( cl->fd ); net_Close( cl->fd );
TAB_REMOVE( p_intf->p_sys->i_clients , TAB_REMOVE( p_intf->p_sys->i_clients ,
......
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