From a54da72215f3216f3ae28846604bba20e483b831 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 22 Apr 2009 20:52:27 +0100 Subject: core.componentmanager: Fix global access --- core/componentmanager.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 96b78bf2..77d11f99 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -80,8 +80,7 @@ end 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) -- cgit v1.2.3