aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_component.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index 5b1eefc7..98eaa6de 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -69,6 +69,7 @@ function module.add_host(module)
if env.connected then
module:log("error", "Second component attempted to connect, denying connection");
session:close{ condition = "conflict", text = "Component already connected" };
+ return true;
end
env.connected = true;