aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-05 14:15:15 +0200
committerKim Alvefur <zash@zash.se>2022-05-05 14:15:15 +0200
commitb58b7a3cb08b6ccd6b4803102a9e14491c4d9882 (patch)
tree77f438924580d3211d054bdd6f7e79c194095a42 /plugins
parent75a15e67f60fcce8df742e68fc5ca988313f47a5 (diff)
parent38c67064b3d36738e5db241041612eaeed6e79b4 (diff)
downloadprosody-b58b7a3cb08b6ccd6b4803102a9e14491c4d9882.tar.gz
prosody-b58b7a3cb08b6ccd6b4803102a9e14491c4d9882.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_cron.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_cron.lua b/plugins/mod_cron.lua
index f0c85615..33d97df6 100644
--- a/plugins/mod_cron.lua
+++ b/plugins/mod_cron.lua
@@ -45,6 +45,7 @@ local function should_run(when, last) return not last or last + periods[when] *
local function run_task(task)
local started_at = os.time();
task:run(started_at);
+ task.last = started_at;
task:save(started_at);
end