diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-11 01:04:19 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-11 01:04:19 +0000 |
commit | 8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31 (patch) | |
tree | af457940b4f591dba9866423098798a8c11a316f /core/s2smanager.lua | |
parent | 7b445486a0173b2d2b96e5639de02d81fc10a0f8 (diff) | |
download | prosody-8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31.tar.gz prosody-8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31.zip |
sessionmanager, s2smanager: Close session on </stream:stream>
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 0435bea9..15d981d4 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -434,11 +434,8 @@ function streamopened(session, attr) end function streamclosed(session) - (session.log or log)("debug", "</stream:stream>"); - if session.sends2s then - session.sends2s("</stream:stream>"); - end - session.notopen = true; + (session.log or log)("debug", "Received </stream:stream>"); + session:close(); end function initiate_dialback(session) |