aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-05 17:09:24 +0200
committerKim Alvefur <zash@zash.se>2019-10-05 17:09:24 +0200
commit70f9952d374d1882c1116b48be66930b1d1d75ff (patch)
tree8793baf13b65efc8bee74b7a960a59c526a46428 /core
parenta183273abe029f83f6d7104426ee1eec8779d387 (diff)
downloadprosody-70f9952d374d1882c1116b48be66930b1d1d75ff.tar.gz
prosody-70f9952d374d1882c1116b48be66930b1d1d75ff.zip
core.s2smanager: Fix traceback due to mixup with to/from
Forgot to swap to and from in 3123a13cf577
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 20b7ffea..7471286c 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -94,7 +94,7 @@ local function destroy_session(session, reason)
session:bounce_sendq(reason);
elseif session.direction == "incoming" then
if session.outgoing then
- hosts[session.from_host].s2sout[session.to_host] = nil;
+ hosts[session.to_host].s2sout[session.from_host] = nil;
end
incoming_s2s[session] = nil;
end