From ef9204bca17420748f0757806d5942f8948a1450 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 14 Mar 2010 03:04:51 +0000 Subject: net.xmppcomponent_listener: Close component sessions on receiving a --- net/xmppcomponent_listener.lua | 4 ++-- 1 file 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(""); - session.notopen = true; + session.log("Received "); + session:close(); end local core_process_stanza = core_process_stanza; -- cgit v1.2.3