diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-14 02:58:11 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-14 02:58:11 +0000 |
commit | 8b94f4df2504444121a345c430538b0a409e059d (patch) | |
tree | 5ee74a74939e82f2b46d1d5825ab80c75b9ec611 | |
parent | 03734de797479ba2cf10002df6a040b6f7d0c010 (diff) | |
download | prosody-8b94f4df2504444121a345c430538b0a409e059d.tar.gz prosody-8b94f4df2504444121a345c430538b0a409e059d.zip |
sessionmanager: Add close method to resting sessions
-rw-r--r-- | core/sessionmanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index b65e866f..5c40f756 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -68,6 +68,9 @@ end 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) |