aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-03-03 13:30:19 +0100
committerKim Alvefur <zash@zash.se>2021-03-03 13:30:19 +0100
commite78947232736427aa6305f4c773e68cbeba63c59 (patch)
treef350a5aecbdddd0e3c77e485691aa481f2bc5e6f /core/s2smanager.lua
parent494b53ce0b5167d89f80c41dbc69fe8af6836f82 (diff)
downloadprosody-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?
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua1
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;