mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani)
This commit is contained in:
parent
dab0914ee7
commit
5e53b5f47c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue