]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Log timeouts as warnings
authorJohn Törnblom <john.tornblom@gmail.com>
Sun, 11 Mar 2012 17:08:45 +0000 (18:08 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Sun, 11 Mar 2012 17:08:45 +0000 (18:08 +0100)
src/webui/webui.c

index ed69ebdf6440a4f71d234419ae42404c73fafacb..1b3d8ca96d9308b68b2fed8e4960d0262d335f2e 100644 (file)
@@ -157,8 +157,9 @@ http_stream_run(http_connection_t *hc, streaming_queue_t *sq, th_subscription_t
           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){
-            run = 0;            
+          if(err || timeouts >= 20) {
+           tvhlog(LOG_WARNING, "webui",  "Timeout waiting for packets");
+           run = 0;
           }
       }
       pthread_mutex_unlock(&sq->sq_mutex);