Software /
code /
prosody
Diff
net/xmppcomponent_listener.lua @ 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 |
parent | 2758:0476a662dacc |
child | 2925:692b3c6c5bd2 |
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