summaryrefslogtreecommitdiff
path: root/module.go
diff options
context:
space:
mode:
Diffstat (limited to 'module.go')
-rw-r--r--module.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/module.go b/module.go
index 47ccd31..3d3b659 100644
--- a/module.go
+++ b/module.go
@@ -63,6 +63,9 @@ func LoadModules(cfg Config) []Module {
// load standard modules in order
for _, id := range moduleOrder {
+ if _, ok := loaded[id]; ok {
+ continue
+ }
mod := modules[id].ModuleInfo().New()
if err := json.Unmarshal(cfg, mod); err != nil {
panic("failed to decode config: " + err.Error())