Software /
code /
prosody
Changeset
2915:f47bd0f7e2e6
sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 14:58:25 +0000 |
parents | 2913:3d4e814cadfa |
children | 2916:c29ecf0cadff 2917:2a6552b22f01 |
files | core/s2smanager.lua core/sessionmanager.lua |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;