Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP client: fix the thread shutdown
  • Loading branch information
perexg committed Nov 30, 2015
1 parent d67e961 commit 64eee81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -1352,9 +1352,11 @@ satip_frontend_input_thread ( void *aux )

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) {
Expand Down

0 comments on commit 64eee81

Please sign in to comment.