Changeset

2756:d81af905ccce

net.xmppcomponent_listener: Close component sessions on receiving a </stream:stream>
author Matthew Wild <mwild1@gmail.com>
date Sun, 14 Mar 2010 03:04:51 +0000
parents 2755:28f2416a3e4e
children 2757:c13816e0c546
files net/xmppcomponent_listener.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppcomponent_listener.lua	Sun Mar 14 03:04:04 2010 +0000
+++ b/net/xmppcomponent_listener.lua	Sun Mar 14 03:04:51 2010 +0000
@@ -88,8 +88,8 @@
 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;