Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
9786:00f7af0be849 | 9787:6625efab91e2 |
---|---|
47 open_stream = function (session) | 47 open_stream = function (session) |
48 session.log("debug", "Attempt to open stream on resting session"); | 48 session.log("debug", "Attempt to open stream on resting session"); |
49 end; | 49 end; |
50 close = function (session) | 50 close = function (session) |
51 session.log("debug", "Attempt to close already-closed session"); | 51 session.log("debug", "Attempt to close already-closed session"); |
52 end; | |
53 reset_stream = function (session) | |
54 session.log("debug", "Attempt to reset stream of already-closed session"); | |
52 end; | 55 end; |
53 filter = function (type, data) return data; end; --luacheck: ignore 212/type | 56 filter = function (type, data) return data; end; --luacheck: ignore 212/type |
54 }; resting_session.__index = resting_session; | 57 }; resting_session.__index = resting_session; |
55 | 58 |
56 local function retire_session(session, reason) | 59 local function retire_session(session, reason) |