SAT>IP: set the teardown timeout to 500ms

This commit is contained in:
Jaroslav Kysela 2014-07-27 16:17:43 +02:00
parent ea02c4368a
commit 65facb3fc4

View file

@ -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;