aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-21 17:13:21 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-21 17:13:21 +0000
commit5c624344662b7330a6f87d3b1e83865c2ac4dd62 (patch)
tree7e32a32d4dde4a75a3fc0a8ace411bc81ccb8e0e /net/server.lua
parent5f0238bc36814cd6d0beefde1a3a31d39d01b5e4 (diff)
downloadprosody-5c624344662b7330a6f87d3b1e83865c2ac4dd62.tar.gz
prosody-5c624344662b7330a6f87d3b1e83865c2ac4dd62.zip
net.server: Small fix for addtimer() compatibility code
Diffstat (limited to 'net/server.lua')
-rw-r--r--net/server.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server.lua b/net/server.lua
index 507bd81e..15bba603 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -9,7 +9,7 @@ if have_luaevent and use_luaevent == true then
-- Backwards compatibility for timers, addtimer
-- called a function roughly every second
- local add_task = require "util.timer";
+ local add_task = require "util.timer".add_task;
function server.addtimer(f)
return add_task(1, function (...) f(...); return 1; end);
end