# HG changeset patch # User Kim Alvefur # Date 1375460474 -7200 # Node ID 6094d57c5387bd052f38fa0de5b15c3029af398d # Parent c714ed7de4eef16b209676618e904f0ae9b83fe9 mod_bidi: Minor cleanup diff -r c714ed7de4ee -r 6094d57c5387 mod_bidi/mod_bidi.lua --- 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