From 0b8a40999a42f9594693d1fd48dab9f8b72ad087 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 16 Jun 2017 15:33:44 +0200 Subject: [PATCH] webui: http_stream_run - fix the end-of-connection check --- src/streaming.c | 2 +- src/webui/webui.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.2