aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-18 14:18:50 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-18 14:18:50 +0100
commitb6bc449cd394bb14b5674e920eaddd3d37255bdb (patch)
tree197c7057630fe2eccbf335af910c389a3f5f0bb1 /core
parent05fbcb767cf2131b62d0dd9a7f0e536e72427d0d (diff)
downloadprosody-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')
-rw-r--r--core/componentmanager.lua1
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