core.componentmanager: Really fix marking components as disconnected when unregistered
authorMatthew Wild <mwild1@gmail.com>
Wed, 29 Apr 2009 01:06:05 +0000 (02:06 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 29 Apr 2009 01:06:05 +0000 (02:06 +0100)
core/componentmanager.lua

index 96b78bf25e60d0c04e840f978942501262adef38..524d334bfc793a7ba2b9757396b8013835181ee9 100644 (file)
@@ -104,7 +104,7 @@ end
 function deregister_component(host)
        if components[host] then
                modulemanager.unload(host, "dialback");
-               host.connected = nil;
+               hosts[host].connected = nil;
                local host_config = configmanager.getconfig()[host];
                if host_config and ((host_config.core.enabled == nil or host_config.core.enabled) and type(host_config.core.component_module) == "string") then
                        -- Set default handler