]> git.sesse.net Git - vlc/blobdiff - src/network/httpd.c
Correctly handle multiple clients in httpd
[vlc] / 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 );