network/io.c: net_Select should return i_total on timeout.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 21 Dec 2007 18:56:54 +0000 (18:56 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 21 Dec 2007 18:56:54 +0000 (18:56 +0000)
src/network/io.c

index b568cd7..934dc03 100644 (file)
@@ -288,7 +288,7 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
                 goto error;
 
             case 0: // timeout
-                if( timeout ) return 0;
+                if( timeout ) return i_total;
                 continue;
         }