sessionmanager, s2smanager: Give resting sessions a pass-through filter, fixes #202

Sun, 22 Aug 2010 21:23:37 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 22 Aug 2010 21:23:37 +0100
changeset 3459
543f31cdde19
parent 3458
9c3ae41e696c
child 3460
742f6e5a4066

sessionmanager, s2smanager: Give resting sessions a pass-through filter, fixes #202

core/s2smanager.lua file | annotate | diff | comparison | revisions
core/sessionmanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Sun Aug 22 21:12:22 2010 +0100
+++ b/core/s2smanager.lua	Sun Aug 22 21:23:37 2010 +0100
@@ -540,6 +540,7 @@
 		close = function (session)
 			session.log("debug", "Attempt to close already-closed session");
 		end;
+		filter = function (type, data) return data; end;
 	}; resting_session.__index = resting_session;
 
 function retire_session(session)
--- a/core/sessionmanager.lua	Sun Aug 22 21:12:22 2010 +0100
+++ b/core/sessionmanager.lua	Sun Aug 22 21:23:37 2010 +0100
@@ -86,6 +86,7 @@
 		close = function (session)
 			session.log("debug", "Attempt to close already-closed session");
 		end;
+		filter = function (type, data) return data; end;
 	}; resting_session.__index = resting_session;
 
 function retire_session(session)

mercurial