Software /
code /
prosody
Diff
core/s2smanager.lua @ 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 |
parent | 8675:d3d74e923e4e |
child | 9934:69982753fe4b |
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;