aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index b2b3c31b..1232922f 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -182,6 +182,11 @@ function streamopened(session, attr)
session.notopen = nil;
end
+function streamclosed(session)
+ session.send("</stream:stream>");
+ session.notopen = true;
+end
+
function send_to_available_resources(user, host, stanza)
local count = 0;
local to = stanza.attr.to;