aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-15 15:29:02 +0200
committerKim Alvefur <zash@zash.se>2022-05-15 15:29:02 +0200
commit54d1ff8cfd2e51de040a11522f31870b9033dd67 (patch)
treef0da9ca4a9798f49df4b1ac4d849c7b316d0e292 /teal-src/plugins
parent04c6caba502115d0611b4313c3228865c48f4285 (diff)
downloadprosody-54d1ff8cfd2e51de040a11522f31870b9033dd67.tar.gz
prosody-54d1ff8cfd2e51de040a11522f31870b9033dd67.zip
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()
Diffstat (limited to 'teal-src/plugins')
-rw-r--r--teal-src/plugins/mod_cron.tl2
1 files changed, 1 insertions, 1 deletions
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<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