]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: Do not show poll() error for EAGAIN
authorJaroslav Kysela <perex@perex.cz>
Sun, 10 May 2015 19:40:36 +0000 (21:40 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 May 2015 19:40:36 +0000 (21:40 +0200)
src/input/mpegts/iptv/iptv.c

index af766702674dad3d120344689c7eacc369c0f839..8706a9d7dc3879387cfa82bccabd8a7024b900f7 100644 (file)
@@ -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);