Diff

plugins/mod_component.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 914:50850f15340c
child 979:d0fd49c4339c
line wrap: on
line diff
--- a/plugins/mod_component.lua	Sun Apr 05 19:42:56 2009 +0100
+++ b/plugins/mod_component.lua	Sun Apr 05 20:06:39 2009 +0100
@@ -69,6 +69,8 @@
 end
 
 function stream_callbacks.streamclosed(session)
+	session.send("</stream:stream>");
+	session.notopen = true;
 end
 
 local core_process_stanza = core_process_stanza;