X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Fs2smanager.lua;h=abeaa6465c8b568c2db53a998ff11470132b9ef6;hb=dc22aa98c54b035664e79e96f27ddda07209e7ee;hp=a8d399d2761307a27c1d3893750238feb2ddbf1f;hpb=6665bba6f9b8e891c99a7abe07c98ce731e4a7ea;p=prosody.git 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