core/s2smanager.lua

changeset 959
e3db909065f2
parent 938
663f75dd7b42
child 960
6bc16062da6c
--- a/core/s2smanager.lua	Sun Apr 05 19:42:56 2009 +0100
+++ b/core/s2smanager.lua	Sun Apr 05 20:06:39 2009 +0100
@@ -244,6 +244,11 @@
 	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);

mercurial