summaryrefslogtreecommitdiffstats
path: root/cmd/platform
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-10-25 08:17:17 -0400
committerGitHub <noreply@github.com>2017-10-25 08:17:17 -0400
commit16b845c0d77535ea306339f7a8bd22fc72f8a3c5 (patch)
treee768b8d1ca5cc3f2e55207ea73c5954b37f708ed /cmd/platform
parent9c0575ce6ef662c18ad7eb91bf6084c6fac1b7ae (diff)
downloadchat-16b845c0d77535ea306339f7a8bd22fc72f8a3c5.tar.gz
chat-16b845c0d77535ea306339f7a8bd22fc72f8a3c5.tar.bz2
chat-16b845c0d77535ea306339f7a8bd22fc72f8a3c5.zip
Differentiate between installed and activated states for plugins (#7706)
Diffstat (limited to 'cmd/platform')
-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")
}