Changeset

2748:85a242cd1bc4

s2smanager: Add open_stream and close methods to resting sessions
author Matthew Wild <mwild1@gmail.com>
date Sun, 14 Mar 2010 02:56:57 +0000
parents 2747:168104895051
children 2749:8dc5f3651501
files core/s2smanager.lua
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)