diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 01:52:03 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 01:52:03 +0500 |
commit | 90a5deef2a0eed04ec4eaf4d2d91992a9fc8f577 (patch) | |
tree | 7ce4925b636ffe4296c6c582dc2bd384ff17cd85 | |
parent | cac4ec8aca4ac49f1233d8dc16f0fa2fef531da8 (diff) | |
download | prosody-90a5deef2a0eed04ec4eaf4d2d91992a9fc8f577.tar.gz prosody-90a5deef2a0eed04ec4eaf4d2d91992a9fc8f577.zip |
net.xmppcomponent_listener: Removed unnecessary and problematic cleanup code.
-rw-r--r-- | net/xmppcomponent_listener.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua index 4f1cda4c..b7e17c4b 100644 --- a/net/xmppcomponent_listener.lua +++ b/net/xmppcomponent_listener.lua @@ -204,12 +204,7 @@ function component_listener.ondisconnect(conn, err) 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; |