Software /
code /
prosody
Changeset
2759:48e8832e5cab
net.xmppcomponent_listener: Don't remove 'log' and 'close' from sessions when destroying, and set destroyed = true
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 14 Mar 2010 03:07:05 +0000 |
parents | 2758:0476a662dacc |
children | 2878:9384ee36fc03 |
files | net/xmppcomponent_listener.lua |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/xmppcomponent_listener.lua Sun Mar 14 03:06:19 2010 +0000 +++ b/net/xmppcomponent_listener.lua Sun Mar 14 03:07:05 2010 +0000 @@ -186,7 +186,12 @@ hosts[session.host].connected = nil; end sessions[conn] = nil; - for k in pairs(session) do session[k] = nil; end + for k in pairs(session) do + if k ~= "log" and k ~= "close" then + session[k] = nil; + end + end + session.destroyed = true; session = nil; end end