plugins/mod_cron.lua
changeset 12013 f6fff0658108
parent 12006 cbed7d8d8f35
child 12190 7f25ac9d8f0d
--- a/plugins/mod_cron.lua	Sat Dec 04 16:48:39 2021 +0100
+++ b/plugins/mod_cron.lua	Sat Dec 04 17:46:37 2021 +0100
@@ -49,7 +49,7 @@
 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