Do not close individual plugins from manager
This commit is contained in:
parent
97c51a56cd
commit
eee26ce5a0
@ -416,21 +416,8 @@ func (m *Manager) Close() (err error) {
|
|||||||
defer m.m.Unlock()
|
defer m.m.Unlock()
|
||||||
|
|
||||||
m.logger.Info("closing the plugin manager")
|
m.logger.Info("closing the plugin manager")
|
||||||
for _, p := range m.Plugins {
|
|
||||||
m.logger.Trace("closing plugin",
|
|
||||||
"plugin", p.Name,
|
|
||||||
)
|
|
||||||
|
|
||||||
if e := p.Close(); e != nil {
|
return m.cleaner.Close()
|
||||||
err = multierror.Append(err, e)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if cerr := m.cleaner.Close(); cerr != nil {
|
|
||||||
err = multierror.Append(err, cerr)
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Implements core.PluginManager. Note this returns a slice of core.NamedPlugin
|
// Implements core.PluginManager. Note this returns a slice of core.NamedPlugin
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user