]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
unlock mutex earlier
authorJohn Törnblom <john.tornblom@gmail.com>
Sun, 11 Mar 2012 17:10:45 +0000 (18:10 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Sun, 11 Mar 2012 17:10:45 +0000 (18:10 +0100)
src/webui/webui.c

index 1b3d8ca96d9308b68b2fed8e4960d0262d335f2e..bcb75b661ac3d980721d8f817ea37b44df32a9da 100644 (file)
@@ -168,6 +168,7 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq, th_subscription_t
 
     timeouts = 0; //Reset timeout counter
     TAILQ_REMOVE(&sq->sq_queue, sm, sm_link);
+    pthread_mutex_unlock(&sq->sq_mutex);
 
     switch(sm->sm_type) {
     case SMT_PACKET: {
@@ -220,7 +221,6 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq, th_subscription_t
       break;
     }
     streaming_msg_free(sm);
-    pthread_mutex_unlock(&sq->sq_mutex);
   }
 
   if(mkm)