misc: fix a bunch of shutdown error messages that are irrelevant
This commit is contained in:
parent
dcfb7d6772
commit
cee30a7500
3 changed files with 7 additions and 5 deletions
|
@ -145,7 +145,8 @@ http_thread ( void *p )
|
|||
while (tvheadend_running) {
|
||||
n = tvhpoll_wait(http_poll, &ev, 1, -1);
|
||||
if (n < 0) {
|
||||
tvherror("http_client", "tvhpoll_wait() error");
|
||||
if (tvheadend_running)
|
||||
tvherror("http_client", "tvhpoll_wait() error");
|
||||
break;
|
||||
} else {
|
||||
pthread_mutex_lock(&http_lock);
|
||||
|
|
|
@ -222,7 +222,6 @@ imagecache_thread ( void *p )
|
|||
}
|
||||
pthread_mutex_unlock(&global_lock);
|
||||
|
||||
fprintf(stderr, "imagecache thread end\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -266,9 +266,11 @@ iptv_input_thread ( void *aux )
|
|||
while ( tvheadend_running ) {
|
||||
nfds = tvhpoll_wait(iptv_poll, &ev, 1, -1);
|
||||
if ( nfds < 0 ) {
|
||||
tvhlog(LOG_ERR, "iptv", "poll() error %s, sleeping 1 second",
|
||||
strerror(errno));
|
||||
sleep(1);
|
||||
if (tvheadend_running) {
|
||||
tvhlog(LOG_ERR, "iptv", "poll() error %s, sleeping 1 second",
|
||||
strerror(errno));
|
||||
sleep(1);
|
||||
}
|
||||
continue;
|
||||
} else if ( nfds == 0 ) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue