core/sessionmanager.lua

changeset 959
e3db909065f2
parent 950
a00b4269de70
child 970
5516f9e66482
--- a/core/sessionmanager.lua	Sun Apr 05 19:42:56 2009 +0100
+++ b/core/sessionmanager.lua	Sun Apr 05 20:06:39 2009 +0100
@@ -182,6 +182,11 @@
 						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;

mercurial