Software /
code /
prosody
Diff
core/componentmanager.lua @ 945:699f0c46526a
core.componentmanager: Fix global set, causing problems with multiple components. Fixes #82.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 31 Mar 2009 03:48:51 +0100 |
parent | 939:b832f786af62 |
child | 961:b48ed2149d0a |
line wrap: on
line diff
--- a/core/componentmanager.lua Tue Mar 31 03:00:40 2009 +0100 +++ b/core/componentmanager.lua Tue Mar 31 03:48:51 2009 +0100 @@ -68,7 +68,7 @@ function create_component(host, component) -- TODO check for host well-formedness - session = session or { type = "component", host = host, connected = true, s2sout = {}, send = component }; + local session = session or { type = "component", host = host, connected = true, s2sout = {}, send = component }; return session; end