Start the cron scheduler only if there are crons configured

This commit is contained in:
Fabio Manganiello 2018-01-15 22:53:48 +01:00
parent a16d92ae8e
commit d629fc897f

View file

@ -112,7 +112,8 @@ class Daemon(object):
backend.start()
# Start the cron scheduler
CronScheduler(jobs=Config.get_cronjobs()).start()
if Config.get_cronjobs():
CronScheduler(jobs=Config.get_cronjobs()).start()
# Poll for messages on the bus
try: