# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1614774619 -3600
# Node ID f4b76e500768a73110c72c1e634937f3aa7dec72
# Parent  f84005d06663b6d06cbd676a2035e694cb3f855e
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?

diff -r f84005d06663 -r f4b76e500768 core/s2smanager.lua
--- 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;