mod_cron: Remove difference between teal version
authorKim Alvefur <zash@zash.se>
Sun, 15 May 2022 15:29:02 +0200
changeset 12507 ad49bb3a4780
parent 12506 5862ddf71e3c
child 12508 c589874fe348
mod_cron: Remove difference between teal version This previously was considered an error because the module API Teal spec did not document a return value from module:add_timer()
teal-src/plugins/mod_cron.tl
--- a/teal-src/plugins/mod_cron.tl	Sun May 15 15:27:35 2022 +0200
+++ b/teal-src/plugins/mod_cron.tl	Sun May 15 15:29:02 2022 +0200
@@ -89,7 +89,7 @@
 end
 
 local task_runner : async.runner_t<task_spec> = async.runner(run_task);
-module:add_timer(1, function() : integer
+scheduled = module:add_timer(1, function() : integer
 	module:log("info", "Running periodic tasks");
 	local delay = 3600;
 	for host in pairs(active_hosts) do