From: John Törnblom Date: Sun, 11 Mar 2012 17:10:45 +0000 (+0100) Subject: unlock mutex earlier X-Git-Tag: 2.99~8^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86cd61f21927ec1183ac2efed9fc24f592fc33cf;p=thirdparty%2Ftvheadend.git unlock mutex earlier --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 1b3d8ca96..bcb75b661 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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)