aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_cron.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_cron.lua b/plugins/mod_cron.lua
index cbb551e8..f18d3a9a 100644
--- a/plugins/mod_cron.lua
+++ b/plugins/mod_cron.lua
@@ -49,7 +49,7 @@ local function run_task(task)
end
local task_runner = async.runner(run_task);
-module:add_timer(1, function()
+scheduled = module:add_timer(1, function()
module:log("info", "Running periodic tasks");
local delay = 3600;
for host in pairs(active_hosts) do