aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-03 18:59:06 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-03 18:59:06 +0100
commit5e53b5f47cb455e395eb7b8e0a0c8741c077035d (patch)
tree92e9fb075400623cd33a5e90c750afe46dc6371a /util
parentdab0914ee7bf3566a4840956c90160e83b046efb (diff)
downloadprosody-5e53b5f47cb455e395eb7b8e0a0c8741c077035d.tar.gz
prosody-5e53b5f47cb455e395eb7b8e0a0c8741c077035d.zip
util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani)
Diffstat (limited to 'util')
-rw-r--r--util/timer.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/timer.lua b/util/timer.lua
index ba7dd429..e52a6917 100644
--- a/util/timer.lua
+++ b/util/timer.lua
@@ -60,8 +60,8 @@ if not server.event then
return next_time;
end);
else
- local event = require "net.server".event;
- local event_base = require "net.server".event_base;
+ local event = server.event;
+ local event_base = server.event_base;
local EVENT_LEAVE = (event.core and event.core.LEAVE) or -1;
function _add_task(delay, callback)