Changeset

4961:29b24a4028ed

sessionmanager: Have session.send() of a retired session return false to indicate failure
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Jul 2012 16:50:14 +0100
parents 4960:8950510ddb2e
children 4962:1d8fb12a9b2d
files core/sessionmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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