diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-22 14:58:25 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-22 14:58:25 +0000 |
commit | 6fc597e709bcd9328e9309f05b55b1c2097cfebe (patch) | |
tree | a160e1e155edd89a32099aaa0f1eb016e548bd9e /core | |
parent | c3a993d0ada1de7131b880aba84ea60a03b50873 (diff) | |
download | prosody-6fc597e709bcd9328e9309f05b55b1c2097cfebe.tar.gz prosody-6fc597e709bcd9328e9309f05b55b1c2097cfebe.zip |
sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo)
Diffstat (limited to 'core')
-rw-r--r-- | core/s2smanager.lua | 1 | ||||
-rw-r--r-- | core/sessionmanager.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index f0b802d8..bc336372 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -506,6 +506,7 @@ end 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; diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 5fa757d6..9fe012b1 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -68,6 +68,7 @@ end local resting_session = { -- Resting, not dead destroyed = true; + type = "c2s_destroyed"; close = function (session) session.log("debug", "Attempt to close already-closed session"); end; |