aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-24 04:48:18 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-24 04:48:18 +0000
commitd47a1f622b276c68fd7bff32da24315d8788317c (patch)
tree1c2b547b818a8d33de97684a27c769890a1eaf85
parent208c7ca51180cd51fef6b5862bc948c3a656cd30 (diff)
downloadprosody-d47a1f622b276c68fd7bff32da24315d8788317c.tar.gz
prosody-d47a1f622b276c68fd7bff32da24315d8788317c.zip
s2smanager: destroy_session(): Pass reason to retire_session() and return true on successful destruction
-rw-r--r--core/s2smanager.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 212a2fe1..dac95314 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -594,7 +594,8 @@ function destroy_session(session, reason)
end
end
- retire_session(session); -- Clean session until it is GC'd
+ retire_session(session, reason); -- Clean session until it is GC'd
+ return true;
end
return _M;