From dc22aa98c54b035664e79e96f27ddda07209e7ee Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 9 Jun 2016 14:04:50 +0200 Subject: [PATCH] s2smanager: Include a stub thread on destroyed sessions (thanks Link Mauve) --- core/s2smanager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/s2smanager.lua b/core/s2smanager.lua index a8d399d2..abeaa646 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -64,6 +64,7 @@ local function retire_session(session, reason) function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); end function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end + session.thread = { run = function (_, data) return session.data(data) end }; session.sends2s = session.send; return setmetatable(session, resting_session); end -- 2.30.2