aboutsummaryrefslogtreecommitdiffstats
path: root/util/timer.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2013-10-30 17:51:37 -0400
committerWaqas Hussain <waqas20@gmail.com>2013-10-30 17:51:37 -0400
commit0f260f9b4e23572e8063c0e4302ca9bccac117d0 (patch)
treefdd0370d145c755111d4828f6fdbda085a9c408f /util/timer.lua
parent792398b07ef11702ddc6b842744840969e48b0e6 (diff)
downloadprosody-0f260f9b4e23572e8063c0e4302ca9bccac117d0.tar.gz
prosody-0f260f9b4e23572e8063c0e4302ca9bccac117d0.zip
util.timer: Fix variable name typo.
Diffstat (limited to 'util/timer.lua')
-rw-r--r--util/timer.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/timer.lua b/util/timer.lua
index d7a9b0bf..99aade15 100644
--- a/util/timer.lua
+++ b/util/timer.lua
@@ -117,7 +117,7 @@ function add_task(delay, callback, param)
params[id] = param;
if next_time == nil or event_time < next_time then
next_time = event_time;
- _add_task(next_time - current_time, on_timer);
+ _add_task(next_time - current_time, _on_timer);
end
return id;
end
@@ -131,7 +131,7 @@ function reschedule(id, delay)
h:reprioritize(id, delay);
if next_time == nil or event_time < next_time then
next_time = event_time;
- _add_task(next_time - current_time, on_timer);
+ _add_task(next_time - current_time, _on_timer);
end
return id;
end