[vlc-devel] commit: telnet: don't call msleep(1000) on poll() error ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Aug 25 16:22:27 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 25 17:21:19 2009 +0300| [54384401d53c986cb1d4f1c8859d8169cd44c58f] | committer: Rémi Denis-Courmont 

telnet: don't call msleep(1000) on poll() error

We should probably exit anyway, as it should be a bug...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54384401d53c986cb1d4f1c8859d8169cd44c58f
---

 modules/control/telnet.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/control/telnet.c b/modules/control/telnet.c
index 9fbc524..b0e023e 100644
--- a/modules/control/telnet.c
+++ b/modules/control/telnet.c
@@ -280,8 +280,8 @@ static void Run( intf_thread_t *p_intf )
                 if (net_errno != EINTR)
                 {
                     msg_Err (p_intf, "network poll error");
-                    msleep (1000);
-                    continue;
+                    pause (); /* We are screwed! */
+                    break;
                 }
             case 0:
                 continue;




More information about the vlc-devel mailing list