From: Jaroslav Kysela Date: Tue, 18 Nov 2014 20:01:14 +0000 (+0100) Subject: epggrab: ota - fix om_requeue handling X-Git-Tag: v4.1~737 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5df9cdf97dc2d353cdc8a43d76434c66db59e822;p=thirdparty%2Ftvheadend.git epggrab: ota - fix om_requeue handling --- diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index c36b15470..30a4af791 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -195,11 +195,16 @@ epggrab_ota_done ( epggrab_ota_mux_t *om, int reason ) if (!om->om_done && om->om_requeue) { TAILQ_INSERT_HEAD(&epggrab_ota_pending, om, om_q_link); om->om_q_type = EPGGRAB_OTA_MUX_PENDING; + } else { + om->om_requeue = 0; } } else if (reason == EPGGRAB_OTA_DONE_TIMEOUT) { + om->om_requeue = 0; LIST_FOREACH(map, &om->om_modules, om_link) if (!map->om_complete) tvhlog(LOG_WARNING, "epggrab", "%s - data completion timeout for %s", map->om_module->name, name); + } else { + om->om_requeue = 0; } /* Remove subscriber */