Software /
code /
prosody
Diff
core/s2smanager.lua @ 6691:c6c996410064
s2smanager: Make sure destroyed sessions have a sends2s method
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 14 May 2015 00:22:13 +0200 |
parent | 5459:3a821511b9ec |
child | 6692:93eefa92527d |
line wrap: on
line diff
--- a/core/s2smanager.lua Wed May 13 21:56:22 2015 +0200 +++ b/core/s2smanager.lua Thu May 14 00:22:13 2015 +0200 @@ -64,6 +64,7 @@ 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.sends2s = session.send; return setmetatable(session, resting_session); end