diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 16:50:14 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 16:50:14 +0100 |
commit | ccd9d1088cf92ec5e8291916848233a9e3609eba (patch) | |
tree | 1435834df1a92f4d44ae491a5d6f8c0c290fdfe3 /core/sessionmanager.lua | |
parent | 7c1372811acef73a712f6182c5a268b500b40ee8 (diff) | |
download | prosody-ccd9d1088cf92ec5e8291916848233a9e3609eba.tar.gz prosody-ccd9d1088cf92ec5e8291916848233a9e3609eba.zip |
sessionmanager: Have session.send() of a retired session return false to indicate failure
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r-- | core/sessionmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 37c1626a..131c29f7 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -82,7 +82,7 @@ function retire_session(session) end end - function session.send(data) log("debug", "Discarding data sent to resting session: %s", tostring(data)); end + 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 return setmetatable(session, resting_session); end |