diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-03-14 03:04:51 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-03-14 03:04:51 +0000 |
commit | ef9204bca17420748f0757806d5942f8948a1450 (patch) | |
tree | 611e28d7f6ccdb2e3204274386f7f3ce07afc3d3 /net | |
parent | 6550edee36ee362d2373d8c98e0b40d4635e1f14 (diff) | |
download | prosody-ef9204bca17420748f0757806d5942f8948a1450.tar.gz prosody-ef9204bca17420748f0757806d5942f8948a1450.zip |
net.xmppcomponent_listener: Close component sessions on receiving a </stream:stream>
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppcomponent_listener.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua index 056eb0a2..9d7988cb 100644 --- a/net/xmppcomponent_listener.lua +++ b/net/xmppcomponent_listener.lua @@ -88,8 +88,8 @@ function stream_callbacks.streamopened(session, attr) end function stream_callbacks.streamclosed(session) - session.send("</stream:stream>"); - session.notopen = true; + session.log("Received </stream:stream>"); + session:close(); end local core_process_stanza = core_process_stanza; |