]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: ota - show warning when the cron settings are invalid
authorJaroslav Kysela <perex@perex.cz>
Thu, 11 Sep 2014 19:43:22 +0000 (21:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 11 Sep 2014 19:43:22 +0000 (21:43 +0200)
src/epggrab/otamux.c

index 9c6e0886909eaeb748224c4a0f546b534539abd9..597baa0e8519fdb3982a223788e60681126e0a17 100644 (file)
@@ -554,6 +554,8 @@ epggrab_ota_start_cb ( void *p )
   pthread_mutex_lock(&epggrab_ota_mutex);
   if (!cron_multi_next(epggrab_ota_cron_multi, dispatch_clock, &next))
     epggrab_ota_next_arm(next);
+  else
+    tvhwarn("epggrab", "ota cron config invalid or unset");
   pthread_mutex_unlock(&epggrab_ota_mutex);
 }
 
@@ -569,6 +571,8 @@ epggrab_ota_arm ( time_t last )
     if (last != (time_t)-1 && last + 1800 > next)
       next = last + 1800;
     epggrab_ota_next_arm(next);
+  } else {
+    tvhwarn("epggrab", "ota cron config invalid or unset");
   }
 
   pthread_mutex_unlock(&epggrab_ota_mutex);