Diff

core/componentmanager.lua @ 1041:07835534d996

core.componentmanager: Fix global access
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 20:52:27 +0100
parent 1004:0c3ea09d6d6e
child 1066:0cb325970a50
line wrap: on
line diff
--- a/core/componentmanager.lua	Wed Apr 22 20:42:56 2009 +0100
+++ b/core/componentmanager.lua	Wed Apr 22 20:52:27 2009 +0100
@@ -80,8 +80,7 @@
 
 function create_component(host, component)
 	-- TODO check for host well-formedness
-	local session = session or { type = "component", host = host, connected = true, s2sout = {} };
-	return session;
+	return { type = "component", host = host, connected = true, s2sout = {} };
 end
 
 function register_component(host, component, session)