X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;ds=sidebyside;f=core%2Fsessionmanager.lua;h=6aa0a4f0f17d147a0b6d2930436ec3b5508084c8;hb=274c1242b6a14f75e233d67d2fe2073cd29028f2;hp=c8856634205ddcd108ba8af7e508489bd3b35b84;hpb=550b468d8b1293ad7c45370cd2fd249a53894a36;p=prosody.git diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index c8856634..6aa0a4f0 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -72,6 +72,7 @@ local function retire_session(session) function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); return false; 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 }; return setmetatable(session, resting_session); end