aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-16 20:01:38 +0100
committerKim Alvefur <zash@zash.se>2019-01-16 20:01:38 +0100
commit2d229c341839f408fd64dd02be2524bb7f121eda (patch)
treedbbec04341184ab21bd1450b554f495921eae845
parent0c19a99587bd6f0f590498dd1639c52af662c9ee (diff)
downloadprosody-2d229c341839f408fd64dd02be2524bb7f121eda.tar.gz
prosody-2d229c341839f408fd64dd02be2524bb7f121eda.zip
core.s2smanager: Add stub reset_stream method to destroyed sessions
Fixes traceback if connection is closed from the 's2s-authenticated' event
-rw-r--r--core/s2smanager.lua3
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;