mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Preventing failed plugins webapp components from being served. (#10953)
This commit is contained in:
committed by
GitHub
parent
b7fcddb0fc
commit
f7cda71bbd
@@ -82,7 +82,10 @@ func (env *Environment) Available() ([]*model.BundleInfo, error) {
|
||||
func (env *Environment) Active() []*model.BundleInfo {
|
||||
activePlugins := []*model.BundleInfo{}
|
||||
env.activePlugins.Range(func(key, value interface{}) bool {
|
||||
activePlugins = append(activePlugins, value.(activePlugin).BundleInfo)
|
||||
plugin := value.(activePlugin)
|
||||
if plugin.State == model.PluginStateRunning {
|
||||
activePlugins = append(activePlugins, plugin.BundleInfo)
|
||||
}
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user