Changeset

9787:6625efab91e2

core.s2smanager: Add stub reset_stream method to destroyed sessions Fixes traceback if connection is closed from the 's2s-authenticated' event
author Kim Alvefur <zash@zash.se>
date Wed, 16 Jan 2019 20:01:38 +0100 (2019-01-16)
parents 9786:00f7af0be849
children 9790:4a419089ad00
files core/s2smanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Wed Jan 16 14:20:16 2019 +0100
+++ b/core/s2smanager.lua	Wed Jan 16 20:01:38 2019 +0100
@@ -50,6 +50,9 @@
 		close = function (session)
 			session.log("debug", "Attempt to close already-closed session");
 		end;
+		reset_stream = function (session)
+			session.log("debug", "Attempt to reset stream of already-closed session");
+		end;
 		filter = function (type, data) return data; end; --luacheck: ignore 212/type
 	}; resting_session.__index = resting_session;