Mercurial > prosody-hg
comparison core/s2smanager.lua @ 10304:56522bb3bca5
core.s2smanager: Fix traceback due to mixup with to/from
Forgot to swap to and from in 3123a13cf577
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 05 Oct 2019 17:09:24 +0200 |
| parents | 3123a13cf577 |
| children | 42cf93ff4618 |
comparison
equal
deleted
inserted
replaced
| 10303:c434bff22b14 | 10304:56522bb3bca5 |
|---|---|
| 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 | 96 if session.outgoing then |
| 97 hosts[session.from_host].s2sout[session.to_host] = nil; | 97 hosts[session.to_host].s2sout[session.from_host] = nil; |
| 98 end | 98 end |
| 99 incoming_s2s[session] = nil; | 99 incoming_s2s[session] = nil; |
| 100 end | 100 end |
| 101 | 101 |
| 102 local event_data = { session = session, reason = reason }; | 102 local event_data = { session = session, reason = reason }; |
