Diff

core/sessionmanager.lua @ 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
parent 4813:77da9671ac39
child 4981:95c18750b89e
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