Unverified Commit 2a22eb6b authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #6438 from fd/fix/dameon/close-started-plugins

Close started plugins when one of them fails to start.
parents dd4ced25 c444b1b9
......@@ -115,7 +115,7 @@ func (loader *PluginLoader) Start(iface coreiface.CoreAPI) error {
if pl, ok := pl.(plugin.PluginDaemon); ok {
err := pl.Start(iface)
if err != nil {
_ = closePlugins(loader.plugins[i:])
_ = closePlugins(loader.plugins[:i])
return err
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment