From 3ba4121e11d4696a40e59486db4f005bf2c7eccd Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 29 Apr 2009 02:06:05 +0100 Subject: core.componentmanager: Really fix marking components as disconnected when unregistered --- core/componentmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 96b78bf2..524d334b 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -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 -- cgit v1.2.3