aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 9e93ffba..7c30cb37 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -104,7 +104,6 @@ function load(host, module_name, config)
if not modulemap[host] then
modulemap[host] = {};
- hosts[host].modules = modulemap[host];
end
if modulemap[host][module_name] then
@@ -128,6 +127,7 @@ function load(host, module_name, config)
setfenv(mod, pluginenv);
if not hosts[host] then hosts[host] = { type = "component", host = host, connected = false, s2sout = {} }; end
+ hosts[host].modules = modulemap[host];
local success, ret = pcall(mod);
if not success then