Skip to content

Commit

Permalink
Merge pull request #6438 from fd/fix/dameon/close-started-plugins
Browse files Browse the repository at this point in the history
Close started plugins when one of them fails to start.
  • Loading branch information
Stebalien authored Jun 12, 2019
2 parents dd4ced2 + c444b1b commit 2a22eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 2a22eb6

Please sign in to comment.