aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-08-05 13:51:44 +0100
committerMatthew Wild <mwild1@gmail.com>2009-08-05 13:51:44 +0100
commit57cef06c8e7bc08b4908b397f18399f6ff250aac (patch)
tree6f24c5bdf6ab9bdeb746a5365be87f6de7301978
parentfef360b4dd88c409b5cacbed161bdd6cfd043396 (diff)
downloadprosody-57cef06c8e7bc08b4908b397f18399f6ff250aac.tar.gz
prosody-57cef06c8e7bc08b4908b397f18399f6ff250aac.zip
xmppcomponent_listener: Fix to collect component sessions on disconnect
-rw-r--r--net/xmppcomponent_listener.lua1
1 files changed, 1 insertions, 0 deletions
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