plugins/mod_component.lua
changeset 4734 4d43dbd6de17
parent 4655 9159546cb2f3
child 4757 5fb68e68ba0b
--- a/plugins/mod_component.lua	Fri Apr 27 22:36:35 2012 +0100
+++ b/plugins/mod_component.lua	Fri Apr 27 22:37:24 2012 +0100
@@ -69,6 +69,7 @@
 		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;