Diff

core/s2smanager.lua @ 959:e3db909065f2

sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream
author Matthew Wild <mwild1@gmail.com>
date Sun, 05 Apr 2009 20:06:39 +0100
parent 938:663f75dd7b42
child 960:6bc16062da6c
line wrap: on
line diff
--- 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);