]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Cosmetics 74/head
authorJohn Törnblom <john.tornblom@gmail.com>
Sun, 11 Mar 2012 17:29:49 +0000 (18:29 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Sun, 11 Mar 2012 17:29:49 +0000 (18:29 +0100)
src/webui/webui.c

index 71122d00a8c477b79167417af3a41310c6378add..9aefb0a54e32eb97b89ef2d97de4cf28499810f6 100644 (file)
@@ -155,9 +155,10 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq, th_subscription_t
 
           //Check socket status
           getsockopt(hc->hc_fd, SOL_SOCKET, SO_ERROR, (char *)&err, &errlen);  
-          
-          //Abort upon socket error, or after 20 seconds of silence
-          if(err || timeouts >= 20) {
+          if(err) {
+           tvhlog(LOG_DEBUG, "webui",  "Client hung up, exit streaming");
+           run = 0;
+          }else if(timeouts >= 20) {
            tvhlog(LOG_WARNING, "webui",  "Timeout waiting for packets");
            run = 0;
           }