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
commite0832f54919378d98d7a9f1231efab9193e2c746 (patch)
tree92e9fb075400623cd33a5e90c750afe46dc6371a /util
parent7f431f144878e0e6624f341dea89db492ca75e83 (diff)
downloadprosody-e0832f54919378d98d7a9f1231efab9193e2c746.tar.gz
prosody-e0832f54919378d98d7a9f1231efab9193e2c746.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)