From: Jaroslav Kysela Date: Mon, 1 Oct 2018 09:14:59 +0000 (+0200) Subject: subscription: try to iterate through all adapters on tuning failed error, fixes ... X-Git-Tag: v4.2.7~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a51800131af05f0a5944ee1a41b2a1191ee9bdfd;p=thirdparty%2Ftvheadend.git subscription: try to iterate through all adapters on tuning failed error, fixes #5230 --- diff --git a/src/subscriptions.c b/src/subscriptions.c index 17a654bd0..f8c2a587c 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -401,7 +401,9 @@ subscription_reschedule(void) s->ths_current_instance = si; if(si == NULL) { - if (s->ths_last_error != error || s->ths_last_find + sec2mono(2) >= mclk()) { + if (s->ths_last_error != error || + s->ths_last_find + sec2mono(2) >= mclk() || + error == SM_CODE_TUNING_FAILED) { tvhtrace(LS_SUBSCRIPTION, "%04X: instance not available, retrying", shortid(s)); if (s->ths_last_error != error) s->ths_last_find = mclk();