diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-18 14:18:50 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-18 14:18:50 +0100 |
commit | b6bc449cd394bb14b5674e920eaddd3d37255bdb (patch) | |
tree | 197c7057630fe2eccbf335af910c389a3f5f0bb1 /core/componentmanager.lua | |
parent | 05fbcb767cf2131b62d0dd9a7f0e536e72427d0d (diff) | |
download | prosody-b6bc449cd394bb14b5674e920eaddd3d37255bdb.tar.gz prosody-b6bc449cd394bb14b5674e920eaddd3d37255bdb.zip |
componentmanager: Set host.connected = nil when deregistering a component so that we fully restore it when we reload
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r-- | core/componentmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |