[PATCH] Avoid infinite loop when the telnet session is closed client-side.
Adrien Grand
jpountz at videolan.org
Wed Feb 25 04:42:00 CET 2009
---
modules/control/telnet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/control/telnet.c b/modules/control/telnet.c
index 85ecaab..2977af8 100644
--- a/modules/control/telnet.c
+++ b/modules/control/telnet.c
@@ -379,7 +379,7 @@ static void Run( intf_thread_t *p_intf )
errno = EAGAIN;
}
#endif
- if (i_recv <= 0 && ( end || errno != EAGAIN ) )
+ if( i_recv == 0 || ( i_recv == -1 && ( end || errno != EAGAIN ) ) )
goto drop;
}
}
--
1.6.1.3
--------------000602070502080102090008--
More information about the vlc-devel
mailing list