Diff

net/server.lua @ 2105:fecf33cb2913

net.server: Small fix for addtimer() compatibility code
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 17:13:21 +0000
parent 2094:c69cb5c171e0
child 2136:23c687039652
line wrap: on
line diff
--- a/net/server.lua	Sat Nov 21 17:11:59 2009 +0000
+++ b/net/server.lua	Sat Nov 21 17:13:21 2009 +0000
@@ -9,7 +9,7 @@
 	
 	-- Backwards compatibility for timers, addtimer
 	-- called a function roughly every second
-	local add_task = require "util.timer";
+	local add_task = require "util.timer".add_task;
 	function server.addtimer(f)
 		return add_task(1, function (...) f(...); return 1; end);
 	end