# HG changeset patch # User Waqas Hussain # Date 1289335923 -18000 # Node ID 6a14c57b458a39fa57fad7195fc659ccfcce85df # Parent 3f3f8227ba769f5d25fc244c73e73a0e68d7389b net.xmppcomponent_listener: Removed unnecessary and problematic cleanup code. diff -r 3f3f8227ba76 -r 6a14c57b458a net/xmppcomponent_listener.lua --- 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;