From: Jaroslav Kysela Date: Sat, 20 Jan 2018 16:29:19 +0000 (+0100) Subject: otamux: set the retry time for all muxes from the temporary failed network, issue... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=945e1d5f704fe8f53cb76052c235cfda620cc5a4;p=thirdparty%2Ftvheadend.git otamux: set the retry time for all muxes from the temporary failed network, issue #4875 --- diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 45d001d8f..bbe3d7287 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -516,12 +516,17 @@ next_one: if (net->failed) { TAILQ_INSERT_TAIL(&epggrab_ota_pending, om, om_q_link); om->om_q_type = EPGGRAB_OTA_MUX_PENDING; + om->om_retry_time = mclk() + mono2sec(60); goto done; } break; } } if (i >= networks_count) { + if (i >= ARRAY_SIZE(networks)) { + tvherror(LS_EPGGRAB, "ota epg - too many networks"); + goto done; + } net = &networks[networks_count++]; net->net = mm->mm_network; net->failed = 0;