diff options
author | Kim Alvefur <zash@zash.se> | 2019-10-05 16:21:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-10-05 16:21:41 +0200 |
commit | 37d4260349ab89d91e8a9b35186b3cbf8e77fc61 (patch) | |
tree | 1176f1f877fb90be6029dc316f5143fd51d572a5 /core/s2smanager.lua | |
parent | 430f8a05a8a258e1007dcd00bd51fd86b615572d (diff) | |
download | prosody-37d4260349ab89d91e8a9b35186b3cbf8e77fc61.tar.gz prosody-37d4260349ab89d91e8a9b35186b3cbf8e77fc61.zip |
core.s2smanager: Remove bidi-enabled s2sin from outgoing routing table
Caused creation of new s2sout instead of proper bidi-enabled s2sin.
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 971ccc5c..20b7ffea 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -93,6 +93,9 @@ local function destroy_session(session, reason) hosts[session.from_host].s2sout[session.to_host] = nil; session:bounce_sendq(reason); elseif session.direction == "incoming" then + if session.outgoing then + hosts[session.from_host].s2sout[session.to_host] = nil; + end incoming_s2s[session] = nil; end |