From 54d1ff8cfd2e51de040a11522f31870b9033dd67 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 15 May 2022 15:29:02 +0200 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teal-src') diff --git a/teal-src/plugins/mod_cron.tl b/teal-src/plugins/mod_cron.tl index 303ecbf0..7fa2a36b 100644 --- a/teal-src/plugins/mod_cron.tl +++ b/teal-src/plugins/mod_cron.tl @@ -89,7 +89,7 @@ local function run_task(task : task_spec) end local task_runner : async.runner_t = 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 -- cgit v1.2.3