diff --git a/CronCommand.php b/CronCommand.php index bd2c09d..628a969 100644 --- a/CronCommand.php +++ b/CronCommand.php @@ -44,6 +44,7 @@ public function actionDaemon() { if (!$this->enabled) { CronService::log("Cron command processor is disabled", CLogger::LEVEL_WARNING); + return; } $this->_service->loadTasks(); @@ -73,6 +74,7 @@ public function actionRun($id) { if (!$this->enabled) { CronService::log("Cron command processor is disabled", CLogger::LEVEL_WARNING); + return; } CronProcess::createById($id, $this->_service)->run();