diff core/componentmanager.lua @ 1013:943f2cd7e480

Merging stable into unstable
author Matthew Wild <mwild1@gmail.com>
date Mon, 20 Apr 2009 03:03:07 +0100
parents 0c3ea09d6d6e
children 07835534d996 3e945c3938ad
line wrap: on
line diff
--- a/core/componentmanager.lua	Wed Apr 15 00:21:40 2009 +0100
+++ b/core/componentmanager.lua	Mon Apr 20 03:03:07 2009 +0100
@@ -104,6 +104,7 @@
 function deregister_component(host)
 	if components[host] then
 		modulemanager.unload(host, "dialback");
+		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