core/modulemanager.lua

changeset 1986
d4ba9d94eb74
parent 1960
1e674dae31ae
child 1987
94ecd3e7be87
--- a/core/modulemanager.lua	Sat Oct 17 23:46:34 2009 +0500
+++ b/core/modulemanager.lua	Sat Oct 17 23:48:30 2009 +0500
@@ -170,7 +170,6 @@
 			log("warn", "Non-fatal error unloading module '%s' on '%s': %s", name, host, err);
 		end
 	end
-	modulemap[host][name] = nil;
 	local params = handler_table:get(host, name); -- , {module.host, origin_type, tag, xmlns}
 	for _, param in pairs(params or NULL) do
 		local handlers = stanza_handlers:get(param[1], param[2], param[3], param[4]);
@@ -187,6 +186,7 @@
 		end
 	end
 	hooks:remove(host, name);
+	modulemap[host][name] = nil;
 	return true;
 end
 

mercurial