forked from platypush/platypush
Start the cron scheduler only if there are crons configured
This commit is contained in:
parent
a16d92ae8e
commit
d629fc897f
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue