aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2013-11-06 12:56:18 -0500
committerdaurnimator <quae@daurnimator.com>2013-11-06 12:56:18 -0500
commitb3325a4073f83da672df19711e78be2d58c7ff92 (patch)
tree6de08bbe8262137d01d79dc7c5055b25c8d18e2e /util
parentd938c65ce63fcc22d915abcc5215efdc52b5cec4 (diff)
downloadprosody-b3325a4073f83da672df19711e78be2d58c7ff92.tar.gz
prosody-b3325a4073f83da672df19711e78be2d58c7ff92.zip
util/timer: Re-set params when timer is rescheduled
Diffstat (limited to 'util')
-rw-r--r--util/timer.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/timer.lua b/util/timer.lua
index 451e27d3..23bd6a37 100644
--- a/util/timer.lua
+++ b/util/timer.lua
@@ -105,6 +105,7 @@ local function _on_timer(now)
local success, err = xpcall(_call, _traceback_handler);
if success and type(err) == "number" then
h:insert(_callback, err + now, _id); -- re-add
+ params[_id] = _param;
end
end
next_time = peek;