]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP client: fix the thread shutdown
authorJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2015 19:44:30 +0000 (20:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2015 19:44:30 +0000 (20:44 +0100)
src/input/mpegts/satip/satip_frontend.c

index d6d0a6829b3fbb118e00ba12a06432591a523e1a..cf0f2e5c79e597cceb803b9729dfb478d30fff1a 100644 (file)
@@ -1352,9 +1352,11 @@ new_tune:
 
     nfds = tvhpoll_wait(efd, ev, 1, ms);
 
-    if (!tvheadend_running) {
+    if (!tvheadend_running || exit_flag) {
       exit_flag = 1;
       running = 0;
+      if (reply++ > 5)
+        break;
     }
 
     if (nfds > 0 && ev[0].data.ptr == NULL) {