@cryptotaxi247 / kubo / commits / c444b1b94

Close started plugins when one of them fails to start.

Simon Menke committed Jun 12, 2019 at 11:55 UTC c444b1b94545888361998e39277d49228ce0c55d
1 file changed +1 -1
plugin/loader/loader.go
+1 -1
@@ -115,7 +115,7 @@ func (loader *PluginLoader) Start(iface coreiface.CoreAPI) error {
115 if pl, ok := pl.(plugin.PluginDaemon); ok {
116 err := pl.Start(iface)
117 if err != nil {
118 - _ = closePlugins(loader.plugins[i:])
118 + _ = closePlugins(loader.plugins[:i])
119 return err
120 }
121 }