# HG changeset patch # User Matthew Wild # Date 1240429947 -3600 # Node ID 07835534d9962fdf11650682cb2bdd9de307c399 # Parent 4c79b28bce64b21235874f83031ed1d8bfef00e8 core.componentmanager: Fix global access diff -r 4c79b28bce64 -r 07835534d996 core/componentmanager.lua --- 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)