From e0832f54919378d98d7a9f1231efab9193e2c746 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 3 May 2012 18:59:06 +0100 Subject: util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani) --- util/timer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/timer.lua') 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) -- cgit v1.2.3