Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: ota - show warning when the cron settings are invalid
  • Loading branch information
perexg committed Sep 11, 2014
1 parent b8fa239 commit 49cdc5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/epggrab/otamux.c
Expand Up @@ -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);
}

Expand All @@ -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);
Expand Down

0 comments on commit 49cdc5a

Please sign in to comment.