diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-26 01:07:52 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-26 01:07:52 +0100 |
commit | 7804582f2a401da0edf284072ae22e46e5196a13 (patch) | |
tree | d764046f067d895f35428cb40d404727d41c7eae /core/s2smanager.lua | |
parent | 7ed27bd649a4e4492638ea17406b89596c9e0201 (diff) | |
download | prosody-7804582f2a401da0edf284072ae22e46e5196a13.tar.gz prosody-7804582f2a401da0edf284072ae22e46e5196a13.zip |
s2smanager: Only send reply </stream:stream> when connection is still open
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index b14f0e96..e9589340 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -306,7 +306,9 @@ end function streamclosed(session) (session.log or log)("debug", "</stream:stream>"); - session.sends2s("</stream:stream>"); + if session.sends2s then + session.sends2s("</stream:stream>"); + end session.notopen = true; end |