core.componentmanager: Really fix marking components as disconnected when unregistered

Wed, 29 Apr 2009 02:06:05 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 29 Apr 2009 02:06:05 +0100
changeset 1064
3e945c3938ad
parent 1063
b873715ffd96
child 1065
3806173670f2

core.componentmanager: Really fix marking components as disconnected when unregistered

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Tue Apr 28 22:53:51 2009 +0100
+++ b/core/componentmanager.lua	Wed Apr 29 02:06:05 2009 +0100
@@ -104,7 +104,7 @@
 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

mercurial