Changeset

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
parents 11417:f84005d06663
children 11419:2c26dfc1977f
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;