aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 01:52:03 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 01:52:03 +0500
commit90a5deef2a0eed04ec4eaf4d2d91992a9fc8f577 (patch)
tree7ce4925b636ffe4296c6c582dc2bd384ff17cd85 /net
parentcac4ec8aca4ac49f1233d8dc16f0fa2fef531da8 (diff)
downloadprosody-90a5deef2a0eed04ec4eaf4d2d91992a9fc8f577.tar.gz
prosody-90a5deef2a0eed04ec4eaf4d2d91992a9fc8f577.zip
net.xmppcomponent_listener: Removed unnecessary and problematic cleanup code.
Diffstat (limited to 'net')
-rw-r--r--net/xmppcomponent_listener.lua7
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;