mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Merge pull request #6438 from fd/fix/dameon/close-started-plugins
Close started plugins when one of them fails to start.
This commit is contained in:
commit
2a22eb6b90
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user