core.s2smanager: Remove bidi-enabled s2sin from outgoing routing table

Caused creation of new s2sout instead of proper bidi-enabled s2sin.
This commit is contained in:
Kim Alvefur 2019-10-05 16:21:41 +02:00
parent 5cadccc68a
commit 72b4209cfb

View file

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