Changeset

1004:0c3ea09d6d6e

componentmanager: Set host.connected = nil when deregistering a component so that we fully restore it when we reload
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Apr 2009 14:18:50 +0100
parents 1003:afae75e37ceb
children 1005:0eed5db7758d
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/componentmanager.lua	Sat Apr 18 04:06:41 2009 +0100
+++ b/core/componentmanager.lua	Sat Apr 18 14:18:50 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