From 57cef06c8e7bc08b4908b397f18399f6ff250aac Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 5 Aug 2009 13:51:44 +0100 Subject: xmppcomponent_listener: Fix to collect component sessions on disconnect --- net/xmppcomponent_listener.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua index 36d74579..bee05967 100644 --- a/net/xmppcomponent_listener.lua +++ b/net/xmppcomponent_listener.lua @@ -167,6 +167,7 @@ function component_listener.disconnect(conn, err) hosts[session.host].connected = nil; end sessions[conn] = nil; + for k in pairs(session) do session[k] = nil; end session = nil; collectgarbage("collect"); end -- cgit v1.2.3