Software /
code /
prosody
Diff
core/s2smanager.lua @ 11418:f4b76e500768
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?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 03 Mar 2021 13:30:19 +0100 |
parent | 10425:42cf93ff4618 |
child | 11900:60676b607b6d |
line wrap: on
line diff
--- a/core/s2smanager.lua Wed Mar 03 13:26:38 2021 +0100 +++ b/core/s2smanager.lua Wed Mar 03 13:30:19 2021 +0100 @@ -55,6 +55,7 @@ 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;