mod_component: Return true after denying a second component connection for a host (thanks xnyhps)
authorMatthew Wild <mwild1@gmail.com>
Fri, 27 Apr 2012 22:37:24 +0100
changeset 4734 4d43dbd6de17
parent 4733 791388f90156
child 4735 474166c08319
mod_component: Return true after denying a second component connection for a host (thanks xnyhps)
plugins/mod_component.lua
--- 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;