aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index f4f7ad36..4c758159 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -244,6 +244,11 @@ function streamopened(session, attr)
session.notopen = nil;
end
+function streamclosed(session)
+ session.send("</stream:stream>");
+ session.notopen = true;
+end
+
function initiate_dialback(session)
-- generate dialback key
session.dialback_key = generate_dialback(session.streamid, session.to_host, session.from_host);