sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo)

Mon, 22 Mar 2010 14:58:25 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 22 Mar 2010 14:58:25 +0000
changeset 2915
f47bd0f7e2e6
parent 2913
3d4e814cadfa
child 2916
c29ecf0cadff
child 2917
2a6552b22f01

sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo)

core/s2smanager.lua file | annotate | diff | comparison | revisions
core/sessionmanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Mon Mar 22 14:36:53 2010 +0000
+++ b/core/s2smanager.lua	Mon Mar 22 14:58:25 2010 +0000
@@ -506,6 +506,7 @@
 
 local resting_session = { -- Resting, not dead
 		destroyed = true;
+		type = "s2s_destroyed";
 		open_stream = function (session)
 			session.log("debug", "Attempt to open stream on resting session");
 		end;
--- a/core/sessionmanager.lua	Mon Mar 22 14:36:53 2010 +0000
+++ b/core/sessionmanager.lua	Mon Mar 22 14:58:25 2010 +0000
@@ -68,6 +68,7 @@
 
 local resting_session = { -- Resting, not dead
 		destroyed = true;
+		type = "c2s_destroyed";
 		close = function (session)
 			session.log("debug", "Attempt to close already-closed session");
 		end;

mercurial