Software /
code /
prosody
Changeset
11518:3f1a865e9419
core.sessionmanager: Add a dummy rawsend() method to resting sessions
Should fix a traceback on attempted use after destruction, in case where
opportunistic_writes was in use.
Thanks Ge0rG
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 15 Apr 2021 15:12:35 +0200 |
parents | 11517:f7275c2c58fa |
children | 11519:df4bd3af4099 |
files | core/sessionmanager.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/sessionmanager.lua Wed Apr 14 16:02:47 2021 +0200 +++ b/core/sessionmanager.lua Thu Apr 15 15:12:35 2021 +0200 @@ -86,6 +86,7 @@ end function session.send(data) log("debug", "Discarding data sent to resting session: %s", data); return false; end + function session.rawsend(data) log("debug", "Discarding data sent to resting session: %s", data); return false; end function session.data(data) log("debug", "Discarding data received from resting session: %s", data); end session.thread = { run = function (_, data) return session.data(data) end }; return setmetatable(session, resting_session);