]> git.sesse.net Git - vlc/commitdiff
small (ugly) fix to check EAGAIN after recv returns -1, fixes telnet-interface input
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 29 Jan 2008 08:03:27 +0000 (08:03 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 29 Jan 2008 08:03:27 +0000 (08:03 +0000)
modules/control/telnet.c

index 901a7c9203e638494bffff8a690e2d2b2ad9889d..6a10b0b3ad5ccf09b8894b94c070ec70a5fe8e64 100644 (file)
@@ -375,7 +375,7 @@ static void Run( intf_thread_t *p_intf )
                                    cl->i_mode + 2 );
                 }
 
-                if (i_recv <= 0)
+                if (i_recv <= 0 && ( end || errno != EAGAIN ) )
                     goto drop;
             }
         }