diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:13:21 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:13:21 +0000 |
commit | 5c624344662b7330a6f87d3b1e83865c2ac4dd62 (patch) | |
tree | 7e32a32d4dde4a75a3fc0a8ace411bc81ccb8e0e /net | |
parent | 5f0238bc36814cd6d0beefde1a3a31d39d01b5e4 (diff) | |
download | prosody-5c624344662b7330a6f87d3b1e83865c2ac4dd62.tar.gz prosody-5c624344662b7330a6f87d3b1e83865c2ac4dd62.zip |
net.server: Small fix for addtimer() compatibility code
Diffstat (limited to 'net')
-rw-r--r-- | net/server.lua | 2 |
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 |