aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-23 15:38:36 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-23 15:38:36 +0100
commit566fc32a4e01ed5c85f30d09e12bb3a56f7d6081 (patch)
tree1bf024d2390faa0ccd04d368e7c7f42fcce813fe
parent46e69d7017eb793885f52a5fd259a85cfdbc78ed (diff)
downloadprosody-566fc32a4e01ed5c85f30d09e12bb3a56f7d6081.tar.gz
prosody-566fc32a4e01ed5c85f30d09e12bb3a56f7d6081.zip
modulemanager: Set module.loaded = false on unload
-rw-r--r--core/modulemanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index f0648667..bf1e1924 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -110,6 +110,7 @@ local function do_unload_module(host, name)
end
end
end
+ mod.module.loaded = false;
modulemap[host][name] = nil;
return true;
end