diff options
author | Kim Alvefur <zash@zash.se> | 2021-03-03 13:30:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-03-03 13:30:19 +0100 |
commit | e78947232736427aa6305f4c773e68cbeba63c59 (patch) | |
tree | f350a5aecbdddd0e3c77e485691aa481f2bc5e6f | |
parent | 494b53ce0b5167d89f80c41dbc69fe8af6836f82 (diff) | |
download | prosody-e78947232736427aa6305f4c773e68cbeba63c59.tar.gz prosody-e78947232736427aa6305f4c773e68cbeba63c59.zip |
core.s2smanager: Set "direction" on destroyed sessions (fixes #1641)
Should prevent errors in certain places where it logs
session.direction captialized using gsub.
Might cause bugs tho, but then the session is destroyed so maybe it
doesn't matter?
-rw-r--r-- | core/s2smanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 7f156f12..49a5adae 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -55,6 +55,7 @@ end local resting_session = { -- Resting, not dead destroyed = true; type = "s2s_destroyed"; + direction = "destroyed"; open_stream = function (session) session.log("debug", "Attempt to open stream on resting session"); end; |