Software /
code /
prosody
Changeset
3582:6a14c57b458a
net.xmppcomponent_listener: Removed unnecessary and problematic cleanup code.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Nov 2010 01:52:03 +0500 |
parents | 3581:3f3f8227ba76 |
children | 3583:ef86ba720f00 |
files | net/xmppcomponent_listener.lua |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/net/xmppcomponent_listener.lua Wed Nov 10 01:51:03 2010 +0500 +++ b/net/xmppcomponent_listener.lua Wed Nov 10 01:52:03 2010 +0500 @@ -204,12 +204,7 @@ if session then (session.log or log)("info", "component disconnected: %s (%s)", tostring(session.host), tostring(err)); if session.on_destroy then session:on_destroy(err); end - if hosts[session.host] then - log("debug", "Deregistering component"); - cm_deregister_component(session.host); - hosts[session.host].connected = nil; - end - sessions[conn] = nil; + sessions[conn] = nil; for k in pairs(session) do if k ~= "log" and k ~= "close" then session[k] = nil;