Unverified 提交 2a22eb6b 作者: Steven Allen 提交者: GitHub

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

Close started plugins when one of them fails to start.
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论