Fix for never checking if the first module for a host is already loaded (affects global modules)

Wed, 04 Feb 2009 18:53:23 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 04 Feb 2009 18:53:23 +0000
changeset 769
9e76018c62fa
parent 768
a5195e3b0e44
child 770
bddf52121908

Fix for never checking if the first module for a host is already loaded (affects global modules)

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- a/core/modulemanager.lua	Mon Feb 02 18:05:21 2009 +0000
+++ b/core/modulemanager.lua	Wed Feb 04 18:53:23 2009 +0000
@@ -90,7 +90,9 @@
 	
 	if not modulemap[host] then
 		modulemap[host] = {};
-	elseif modulemap[host][module_name] then
+	end
+	
+	if modulemap[host][module_name] then
 		log("warn", "%s is already loaded for %s, so not loading again", module_name, host);
 		return nil, "module-already-loaded";
 	elseif modulemap["*"][module_name] then

mercurial