# HG changeset patch # User Matthew Wild # Date 1336067946 -3600 # Node ID 5bcdc384e48505dd3bc6b37f6f7e8a36ecfb068d # Parent 1d1fdfa29f062739cbb7e2659c227abaee9caf4d util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani) diff -r 1d1fdfa29f06 -r 5bcdc384e485 util/timer.lua --- a/util/timer.lua Thu May 03 18:53:36 2012 +0100 +++ b/util/timer.lua Thu May 03 18:59:06 2012 +0100 @@ -60,8 +60,8 @@ 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)