aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-06-09 14:04:50 +0200
committerKim Alvefur <zash@zash.se>2016-06-09 14:04:50 +0200
commit8db3c0f7ee60372ae79c3bcd2d062f1b756f09e6 (patch)
treef43bcbd222652e15fed507378bac634f154db0fb
parenta994aa71fb75feb47172b56d1ff6019870daa502 (diff)
downloadprosody-8db3c0f7ee60372ae79c3bcd2d062f1b756f09e6.tar.gz
prosody-8db3c0f7ee60372ae79c3bcd2d062f1b756f09e6.zip
s2smanager: Include a stub thread on destroyed sessions (thanks Link Mauve)
-rw-r--r--core/s2smanager.lua1
1 files changed, 1 insertions, 0 deletions
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