From b6bc449cd394bb14b5674e920eaddd3d37255bdb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 18 Apr 2009 14:18:50 +0100 Subject: componentmanager: Set host.connected = nil when deregistering a component so that we fully restore it when we reload --- core/componentmanager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 308dea57..96b78bf2 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -104,6 +104,7 @@ end 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 -- cgit v1.2.3