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 | 72b4209cfb6968802358cf5556dfb7be6442e194 (patch) | |
tree | 1176f1f877fb90be6029dc316f5143fd51d572a5 | |
parent | 5cadccc68af00a5d2dcd2ea09c03e713e4fa4739 (diff) | |
download | prosody-72b4209cfb6968802358cf5556dfb7be6442e194.tar.gz prosody-72b4209cfb6968802358cf5556dfb7be6442e194.zip |
core.s2smanager: Remove bidi-enabled s2sin from outgoing routing table
Caused creation of new s2sout instead of proper bidi-enabled s2sin.
-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 |