aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-03-31 03:48:51 +0100
committerMatthew Wild <mwild1@gmail.com>2009-03-31 03:48:51 +0100
commite619e613a33455575534922a6007ef81c66fa494 (patch)
tree86a64aea31283eb2e98595b53fc49a24f6fd3193
parente9774621daa82d73900ce46a299fe98d465b8fa9 (diff)
downloadprosody-e619e613a33455575534922a6007ef81c66fa494.tar.gz
prosody-e619e613a33455575534922a6007ef81c66fa494.zip
core.componentmanager: Fix global set, causing problems with multiple components. Fixes #82.
-rw-r--r--core/componentmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index e7b5e4dc..0b13c5c5 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -68,7 +68,7 @@ end
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