Software /
code /
prosody
Changeset
1635:33d087466767
xmppcomponent_listener: Fix to collect component sessions on disconnect
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Aug 2009 13:51:44 +0100 |
parents | 1633:7812459eeed7 |
children | 1636:16e9ba7c4a03 1641:af962e6ae781 |
files | net/xmppcomponent_listener.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/xmppcomponent_listener.lua Wed Aug 05 03:08:21 2009 +0100 +++ b/net/xmppcomponent_listener.lua Wed Aug 05 13:51:44 2009 +0100 @@ -167,6 +167,7 @@ hosts[session.host].connected = nil; end sessions[conn] = nil; + for k in pairs(session) do session[k] = nil; end session = nil; collectgarbage("collect"); end