]> git.sesse.net Git - vlc/blobdiff - src/network/tcp.c
Do not check for the same error twice (CID#147)
[vlc] / src / network / tcp.c
index fe273759411bebe619beb5e02c36fd9779a5de73..814808d056b212c30d70af3f4748c91b39b126c5 100644 (file)
@@ -279,9 +279,6 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait )
     int timeout = (i_wait < 0) ? -1 : i_wait / 1000;
     int evfd = vlc_object_waitpipe (p_this);
 
-    if (evfd == -1)
-        return -1;
-
     assert( pi_fd != NULL );
 
     for (;;)