]> git.sesse.net Git - vlc/commitdiff
telnet: don't call msleep(1000) on poll() error
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 14:21:19 +0000 (17:21 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 25 Aug 2009 14:21:19 +0000 (17:21 +0300)
We should probably exit anyway, as it should be a bug...

modules/control/telnet.c

index 9fbc52461d8011d29616dccd520d39b88f7b4e97..b0e023e5d13e949e4f53d4229bcb9fbcf1b378a4 100644 (file)
@@ -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;