Changeset

1122:6094d57c5387

mod_bidi: Minor cleanup
author Kim Alvefur <zash@zash.se>
date Fri, 02 Aug 2013 18:21:14 +0200
parents 1121:c714ed7de4ee
children 1123:0e16e5e2f410
files mod_bidi/mod_bidi.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_bidi/mod_bidi.lua	Fri Aug 02 17:35:39 2013 +0200
+++ b/mod_bidi/mod_bidi.lua	Fri Aug 02 18:21:14 2013 +0200
@@ -31,7 +31,6 @@
 		if conflicting_session then
 			conflicting_session.log("info", "We already have an outgoing connection to %s, closing it...", origin.from_host);
 			conflicting_session:close{ condition = "conflict", text = "Replaced by bidirectional stream" }
-			s2smanager.destroy_session(conflicting_session);
 		end
 		bidi_sessions[origin.from_host] = origin;
 	elseif origin.type == "s2sout" then -- handle incoming stanzas correctly
@@ -105,7 +104,7 @@
 
 function disable_bidi(event)
 	local session = event.session;
-	if session.type == "s2sin" then -- then we create an "outgoing" bidirectional session
+	if session.type == "s2sin" then
 		bidi_sessions[session.from_host] = nil;
 	end
 end