# HG changeset patch # User Matthew Wild # Date 1342972214 -3600 # Node ID 29b24a4028ed6fba044778cb6425d3ab26e64f27 # Parent 8950510ddb2e67c37b269e089321b1cbde121677 sessionmanager: Have session.send() of a retired session return false to indicate failure diff -r 8950510ddb2e -r 29b24a4028ed core/sessionmanager.lua --- a/core/sessionmanager.lua Sun Jul 22 16:45:27 2012 +0100 +++ b/core/sessionmanager.lua Sun Jul 22 16:50:14 2012 +0100 @@ -82,7 +82,7 @@ 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