]> git.sesse.net Git - vlc/commitdiff
Correctly handle multiple clients in httpd
authorSébastien Escudier <sebastien-devel@celeos.eu>
Mon, 24 Nov 2008 09:59:29 +0000 (10:59 +0100)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 26 Nov 2008 18:40:41 +0000 (20:40 +0200)
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
src/network/httpd.c

index 0e5406b0d2025b57090a0310e73b8891f389e7e9..11490570ed3631f85e572b65410a1d03a42e95e2 100644 (file)
@@ -2474,6 +2474,7 @@ retry:
 
             if( cl->fd != pufd->fd )
                 continue; // we were not waiting for this client
+            ++nfd;
             if( pufd->revents == 0 )
                 continue; // no event received
 
@@ -2502,8 +2503,6 @@ retry:
             {
                 cl->b_read_waiting = true;
             }
-
-            ++nfd;
         }
         vlc_mutex_unlock( &host->lock );