Diff

teal-src/plugins/mod_cron.tl @ 12503:ad49bb3a4780

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()
author Kim Alvefur <zash@zash.se>
date Sun, 15 May 2022 15:29:02 +0200
parent 12498:c3e47a5dd30d
line wrap: on
line diff
--- 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