core/componentmanager.lua

changeset 1066
0cb325970a50
parent 1041
07835534d996
parent 1064
3e945c3938ad
child 1100
05d209ef9661
--- a/core/componentmanager.lua	Thu Apr 23 21:06:51 2009 +0100
+++ b/core/componentmanager.lua	Wed Apr 29 02:08:55 2009 +0100
@@ -103,7 +103,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