Diff

util/timer.lua @ 4812:5bcdc384e485

util.timer: Remove unnecessary require calls, fixes a traceback (thanks nulani)
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 May 2012 18:59:06 +0100
parent 4808:07d0a3a75c8a
child 4871:b2d177f2febc
line wrap: on
line diff
--- 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)