aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-14 02:58:11 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-14 02:58:11 +0000
commit8b94f4df2504444121a345c430538b0a409e059d (patch)
tree5ee74a74939e82f2b46d1d5825ab80c75b9ec611 /core/sessionmanager.lua
parent03734de797479ba2cf10002df6a040b6f7d0c010 (diff)
downloadprosody-8b94f4df2504444121a345c430538b0a409e059d.tar.gz
prosody-8b94f4df2504444121a345c430538b0a409e059d.zip
sessionmanager: Add close method to resting sessions
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua3
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)