aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-05 16:21:41 +0200
committerKim Alvefur <zash@zash.se>2019-10-05 16:21:41 +0200
commit72b4209cfb6968802358cf5556dfb7be6442e194 (patch)
tree1176f1f877fb90be6029dc316f5143fd51d572a5 /core/s2smanager.lua
parent5cadccc68af00a5d2dcd2ea09c03e713e4fa4739 (diff)
downloadprosody-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.
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua3
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