Changeset

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
parents 2104:466bd2cac62a
children 2106:0737b167a997
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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