util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani)

This commit is contained in:
Matthew Wild 2012-05-03 18:59:06 +01:00
parent dab0914ee7
commit 5e53b5f47c

View file

@ -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)