diff options
Diffstat (limited to 'plugin/pluginenv/environment.go')
-rw-r--r-- | plugin/pluginenv/environment.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugin/pluginenv/environment.go b/plugin/pluginenv/environment.go index 62eb20e9d..26511c651 100644 --- a/plugin/pluginenv/environment.go +++ b/plugin/pluginenv/environment.go @@ -148,13 +148,9 @@ func (env *Environment) ActivatePlugin(id string) error { if err != nil { return errors.Wrapf(err, "unable to get api for plugin: %v", id) } - if err := supervisor.Start(); err != nil { + if err := supervisor.Start(api); err != nil { return errors.Wrapf(err, "unable to start plugin: %v", id) } - if err := supervisor.Hooks().OnActivate(api); err != nil { - supervisor.Stop() - return errors.Wrapf(err, "unable to activate plugin: %v", id) - } activePlugin.Supervisor = supervisor } |