Commit c444b1b9 authored by Simon Menke's avatar Simon Menke

Close started plugins when one of them fails to start.

parent ccef991a
......@@ -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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment