Software / code / prosody
Changeset
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 |
| parents | 12502:5862ddf71e3c |
| children | 12504:c589874fe348 |
| files | teal-src/plugins/mod_cron.tl |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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