s2smanager: Add open_stream and close methods to resting sessions

Sun, 14 Mar 2010 02:56:57 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 14 Mar 2010 02:56:57 +0000
changeset 2748
85a242cd1bc4
parent 2747
168104895051
child 2749
8dc5f3651501

s2smanager: Add open_stream and close methods to resting sessions

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Thu Mar 11 01:04:19 2010 +0000
+++ b/core/s2smanager.lua	Sun Mar 14 02:56:57 2010 +0000
@@ -511,6 +511,12 @@
 
 local resting_session = { -- Resting, not dead
 		destroyed = true;
+		open_stream = function (session)
+			session.log("debug", "Attempt to open stream on resting session");
+		end;
+		close = function (session)
+			session.log("debug", "Attempt to close already-closed session");
+		end;
 	}; resting_session.__index = resting_session;
 
 function retire_session(session)

mercurial