From: Jaroslav Kysela Date: Sun, 27 Jul 2014 14:17:43 +0000 (+0200) Subject: SAT>IP: set the teardown timeout to 500ms X-Git-Tag: v4.1~1745 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65facb3fc4eb89707c5391175af7cb90a8cb30ec;p=thirdparty%2Ftvheadend.git SAT>IP: set the teardown timeout to 500ms --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 953930a8e..218fadfb9 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1183,8 +1183,10 @@ satip_frontend_input_thread ( void *aux ) r = http_client_run(rtsp); if (r != HTTP_CON_RECEIVING && r != HTTP_CON_SENDING) break; - nfds = tvhpoll_wait(efd, ev, 1, -1); - if (nfds <= 0) { + nfds = tvhpoll_wait(efd, ev, 1, 500); + if (nfds == 0) + break; + if (nfds < 0) { if (ERRNO_AGAIN(errno)) continue; break;