]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: ota - fix om_requeue handling
authorJaroslav Kysela <perex@perex.cz>
Tue, 18 Nov 2014 20:01:14 +0000 (21:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 Nov 2014 20:01:14 +0000 (21:01 +0100)
src/epggrab/otamux.c

index c36b15470540ef177cd022cb5d4c2818de5f951f..30a4af79124fc06eb001fb4d382a5efd94204604 100644 (file)
@@ -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 */