From 7317e3f072a04457d4b2b7321486be8acf7d1a53 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 10 May 2015 21:40:36 +0200 Subject: [PATCH] IPTV: Do not show poll() error for EAGAIN --- src/input/mpegts/iptv/iptv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/mpegts/iptv/iptv.c b/src/input/mpegts/iptv/iptv.c index af7667026..8706a9d7d 100644 --- a/src/input/mpegts/iptv/iptv.c +++ b/src/input/mpegts/iptv/iptv.c @@ -307,7 +307,7 @@ iptv_input_thread ( void *aux ) while ( tvheadend_running ) { nfds = tvhpoll_wait(iptv_poll, &ev, 1, -1); if ( nfds < 0 ) { - if (tvheadend_running) { + if (tvheadend_running && !ERRNO_AGAIN(errno)) { tvhlog(LOG_ERR, "iptv", "poll() error %s, sleeping 1 second", strerror(errno)); sleep(1); -- 2.47.2