From: Jaroslav Kysela Date: Thu, 11 Sep 2014 19:43:22 +0000 (+0200) Subject: epggrab: ota - show warning when the cron settings are invalid X-Git-Tag: v4.1~1392 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49cdc5a9dba6736325b9469f7d131aa8a87b29ea;p=thirdparty%2Ftvheadend.git epggrab: ota - show warning when the cron settings are invalid --- diff --git a/src/epggrab/otamux.c b/src/epggrab/otamux.c index 9c6e08869..597baa0e8 100644 --- a/src/epggrab/otamux.c +++ b/src/epggrab/otamux.c @@ -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);