aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-22 16:50:14 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-22 16:50:14 +0100
commit5e7ab4f153891bb8d220c9d12ce639ad6e31db0a (patch)
tree1435834df1a92f4d44ae491a5d6f8c0c290fdfe3 /core/sessionmanager.lua
parent2057401904191d1ee3d7f6e6e620484d954a852d (diff)
downloadprosody-5e7ab4f153891bb8d220c9d12ce639ad6e31db0a.tar.gz
prosody-5e7ab4f153891bb8d220c9d12ce639ad6e31db0a.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.lua2
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