net_Read(): Checks p_libvlc->b_die
authorRafaël Carré <funman@videolan.org>
Sat, 1 Sep 2007 16:35:25 +0000 (16:35 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 1 Sep 2007 16:35:25 +0000 (16:35 +0000)
src/network/io.c

index e95dad1..077b62d 100644 (file)
@@ -251,7 +251,7 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
 
     while (i_buflen > 0)
     {
-        if (p_this->b_die)
+        if( ( p_this->b_die ) || ( p_this->p_libvlc->b_die ) )
         {
 #if defined(WIN32) || defined(UNDER_CE)
             WSASetLastError (WSAEINTR);