diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-16 20:01:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-16 20:01:38 +0100 |
commit | 5268b2c180c1bce00117232541a979a909ff2eb3 (patch) | |
tree | dbbec04341184ab21bd1450b554f495921eae845 /core/s2smanager.lua | |
parent | b2c3b2f740d777f1e04df40494f2be0637f946a6 (diff) | |
download | prosody-5268b2c180c1bce00117232541a979a909ff2eb3.tar.gz prosody-5268b2c180c1bce00117232541a979a909ff2eb3.zip |
core.s2smanager: Add stub reset_stream method to destroyed sessions
Fixes traceback if connection is closed from the 's2s-authenticated' event
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 58269c49..0ba5e7c6 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -50,6 +50,9 @@ local resting_session = { -- Resting, not dead 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; |