Changeset

2750:4a6f32e6a8e5

sessionmanager: Add close method to resting sessions
author Matthew Wild <mwild1@gmail.com>
date Sun, 14 Mar 2010 02:58:11 +0000
parents 2749:8dc5f3651501
children 2751:1d7746c3a8c6
files core/sessionmanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Sun Mar 14 02:57:22 2010 +0000
+++ b/core/sessionmanager.lua	Sun Mar 14 02:58:11 2010 +0000
@@ -68,6 +68,9 @@
 
 local resting_session = { -- Resting, not dead
 		destroyed = true;
+		close = function (session)
+			session.log("debug", "Attempt to close already-closed session");
+		end;
 	}; resting_session.__index = resting_session;
 
 function retire_session(session)