Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP: set the teardown timeout to 500ms
  • Loading branch information
perexg committed Jul 27, 2014
1 parent ea02c43 commit 65facb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -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;
Expand Down

0 comments on commit 65facb3

Please sign in to comment.