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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e316c7677e80b8d746d114879b118cfe088a4e3b;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 b5af604d5..544b8d3ab 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -425,7 +425,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();