aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-11 01:04:19 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-11 01:04:19 +0000
commit8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31 (patch)
treeaf457940b4f591dba9866423098798a8c11a316f /core/sessionmanager.lua
parent7b445486a0173b2d2b96e5639de02d81fc10a0f8 (diff)
downloadprosody-8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31.tar.gz
prosody-8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31.zip
sessionmanager, s2smanager: Close session on </stream:stream>
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index a2c6ed95..b65e866f 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -211,8 +211,8 @@ function streamopened(session, attr)
end
function streamclosed(session)
- session.send("</stream:stream>");
- session.notopen = true;
+ session.log("debug", "Received </stream:stream>");
+ session:close();
end
function send_to_available_resources(user, host, stanza)