--- 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