diff --git a/plugin/loader/loader.go b/plugin/loader/loader.go index b5a2d08ed..f2a9ab60c 100644 --- a/plugin/loader/loader.go +++ b/plugin/loader/loader.go @@ -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 } }