]> git.sesse.net Git - vlc/commitdiff
Ugly fix for httpd deadlock
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 9 May 2008 15:34:41 +0000 (18:34 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 9 May 2008 15:34:41 +0000 (18:34 +0300)
src/network/httpd.c

index 544410cf467c27b09e162c50aaec2a4f56009c00..6ddd9dab8de4f4a7cb13bb01fbb34ca0476d490a 100644 (file)
@@ -2024,6 +2024,7 @@ static void httpd_HostThread( httpd_host_t *host )
     int evfd;
     bool b_die;
 
+retry:
     vlc_object_lock( host );
     evfd = vlc_object_waitpipe( VLC_OBJECT( host ) );
     b_die = !vlc_object_alive( host );
@@ -2035,7 +2036,7 @@ static void httpd_HostThread( httpd_host_t *host )
         {
             /* 0.2s (FIXME: use a condition variable) */
             msleep( 200000 );
-            continue;
+            goto retry;
         }
 
         /* prepare a new TLS session */