diff options
author | Kim Alvefur <zash@zash.se> | 2015-05-14 00:22:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-05-14 00:22:13 +0200 |
commit | a1856627f59745d91f4960afedbe95c6113f2b95 (patch) | |
tree | b9a852330e21af354812ee94661158a700c1c12d /core | |
parent | ecb35aa0e93c449e422fc385e2e2b679b7082b8c (diff) | |
download | prosody-a1856627f59745d91f4960afedbe95c6113f2b95.tar.gz prosody-a1856627f59745d91f4960afedbe95c6113f2b95.zip |
s2smanager: Make sure destroyed sessions have a sends2s method
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 06d3f2c9..fb5c4299 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -64,6 +64,7 @@ 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.sends2s = session.send; return setmetatable(session, resting_session); end |