aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-26 01:07:52 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-26 01:07:52 +0100
commit7804582f2a401da0edf284072ae22e46e5196a13 (patch)
treed764046f067d895f35428cb40d404727d41c7eae /core
parent7ed27bd649a4e4492638ea17406b89596c9e0201 (diff)
downloadprosody-7804582f2a401da0edf284072ae22e46e5196a13.tar.gz
prosody-7804582f2a401da0edf284072ae22e46e5196a13.zip
s2smanager: Only send reply </stream:stream> when connection is still open
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua4
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