Software /
code /
prosody
Diff
core/sessionmanager.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 | 950:a00b4269de70 |
child | 970:5516f9e66482 |
line wrap: on
line diff
--- 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;