summaryrefslogtreecommitdiffstats
path: root/cmd/platform/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/server.go')
-rw-r--r--cmd/platform/server.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go
index 591a27457..d0065245f 100644
--- a/cmd/platform/server.go
+++ b/cmd/platform/server.go
@@ -75,14 +75,6 @@ func runServer(configFileLocation string) {
if webappDir, ok := utils.FindDir(model.CLIENT_DIR); ok {
a.InitPlugins("plugins", webappDir+"/plugins")
-
- utils.AddConfigListener(func(prevCfg *model.Config, cfg *model.Config) {
- if !*prevCfg.PluginSettings.Enable && *cfg.PluginSettings.Enable {
- a.InitPlugins("plugins", webappDir+"/plugins")
- } else if *prevCfg.PluginSettings.Enable && !*cfg.PluginSettings.Enable {
- a.ShutDownPlugins()
- }
- })
} else {
l4g.Error("Unable to find webapp directory, could not initialize plugins")
}