# HG changeset patch # User Kim Alvefur # Date 1547665298 -3600 # Node ID 6625efab91e24e7ac2dfbdae4aea024aa0346aac # Parent 00f7af0be849549c1e65c485f214ca90c97981a9 core.s2smanager: Add stub reset_stream method to destroyed sessions Fixes traceback if connection is closed from the 's2s-authenticated' event diff -r 00f7af0be849 -r 6625efab91e2 core/s2smanager.lua --- 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;