aboutsummaryrefslogtreecommitdiffstats
path: root/util/timer.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-03 02:33:33 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-03 02:33:33 +0100
commit59a69e124ec6f97518990b1b8bbe5ffad89cbfdf (patch)
tree42ecc21857157832cfd75aabf9aee3ef6ae911e5 /util/timer.lua
parent649fe9f272627bf4485376a2e35a88c0db0810e3 (diff)
downloadprosody-59a69e124ec6f97518990b1b8bbe5ffad89cbfdf.tar.gz
prosody-59a69e124ec6f97518990b1b8bbe5ffad89cbfdf.zip
util.timer: Pass current_time to timer callbacks
Diffstat (limited to 'util/timer.lua')
-rw-r--r--util/timer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/timer.lua b/util/timer.lua
index 819016de..c0c7f25a 100644
--- a/util/timer.lua
+++ b/util/timer.lua
@@ -42,7 +42,7 @@ ns_addtimer(function()
local t, func = d[1], d[2];
if t <= current_time then
data[i] = nil;
- local r = func();
+ local r = func(current_time);
if type(r) == "number" then _add_task(r, func); end
end
end