Mercurial > prosody-hg
comparison core/s2smanager.lua @ 10301:3123a13cf577
core.s2smanager: Remove bidi-enabled s2sin from outgoing routing table
Caused creation of new s2sout instead of proper bidi-enabled s2sin.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 05 Oct 2019 16:21:41 +0200 |
| parents | 483cc47f15f8 |
| children | 56522bb3bca5 |
comparison
equal
deleted
inserted
replaced
| 10300:78f2a3a9c537 | 10301:3123a13cf577 |
|---|---|
| 91 | 91 |
| 92 if session.direction == "outgoing" then | 92 if session.direction == "outgoing" then |
| 93 hosts[session.from_host].s2sout[session.to_host] = nil; | 93 hosts[session.from_host].s2sout[session.to_host] = nil; |
| 94 session:bounce_sendq(reason); | 94 session:bounce_sendq(reason); |
| 95 elseif session.direction == "incoming" then | 95 elseif session.direction == "incoming" then |
| 96 if session.outgoing then | |
| 97 hosts[session.from_host].s2sout[session.to_host] = nil; | |
| 98 end | |
| 96 incoming_s2s[session] = nil; | 99 incoming_s2s[session] = nil; |
| 97 end | 100 end |
| 98 | 101 |
| 99 local event_data = { session = session, reason = reason }; | 102 local event_data = { session = session, reason = reason }; |
| 100 if session.type == "s2sout" then | 103 if session.type == "s2sout" then |
