core/componentmanager.lua

changeset 1041
07835534d996
parent 1009
0c3ea09d6d6e
child 1066
0cb325970a50
--- 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)

mercurial