Diff

core/sessionmanager.lua @ 2750:4a6f32e6a8e5

sessionmanager: Add close method to resting sessions
author Matthew Wild <mwild1@gmail.com>
date Sun, 14 Mar 2010 02:58:11 +0000
parent 2747:168104895051
child 2751:1d7746c3a8c6
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)