From: Jaroslav Kysela Date: Fri, 16 Jun 2017 13:33:44 +0000 (+0200) Subject: webui: http_stream_run - fix the end-of-connection check X-Git-Tag: v4.2.3~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b8a40999a42f9594693d1fd48dab9f8b72ad087;p=thirdparty%2Ftvheadend.git webui: http_stream_run - fix the end-of-connection check --- diff --git a/src/streaming.c b/src/streaming.c index 873a104a2..afd2d0cf5 100644 --- a/src/streaming.c +++ b/src/streaming.c @@ -201,7 +201,7 @@ streaming_msg_create(streaming_message_type_t type) memoryinfo_alloc(&streaming_msg_memoryinfo, sizeof(*sm)); sm->sm_type = type; #if ENABLE_TIMESHIFT - sm->sm_time = 0; + sm->sm_time = 0; #endif return sm; } diff --git a/src/webui/webui.c b/src/webui/webui.c index e73f2083a..8e5381664 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -496,6 +496,8 @@ http_stream_run(http_connection_t *hc, profile_chain_t *prch, break; case SMT_SERVICE_STATUS: + case SMT_SIGNAL_STATUS: + case SMT_DESCRAMBLE_INFO: if(tcp_socket_dead(hc->hc_fd)) { tvhdebug(LS_WEBUI, "Stop streaming %s, client hung up", hc->hc_url_orig); @@ -510,8 +512,6 @@ http_stream_run(http_connection_t *hc, profile_chain_t *prch, case SMT_NOSTART_WARN: case SMT_SKIP: case SMT_SPEED: - case SMT_SIGNAL_STATUS: - case SMT_DESCRAMBLE_INFO: case SMT_TIMESHIFT_STATUS: break;