]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: http_stream_run - fix the end-of-connection check
authorJaroslav Kysela <perex@perex.cz>
Fri, 16 Jun 2017 13:33:44 +0000 (15:33 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 16 Jun 2017 13:33:55 +0000 (15:33 +0200)
src/streaming.c
src/webui/webui.c

index 873a104a251339c15f50f958a862483980f5fecb..afd2d0cf58b5d8e94aa9777aee667744f5ab0dec 100644 (file)
@@ -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;
 }
index e73f2083a8747a209145f98fab1e7ea0a185a1ab..8e53816640d4574fd2b712fa291f346f5f2db3c6 100644 (file)
@@ -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;