aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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