Close plugin manager when closing runner

This commit is contained in:
Chris Roberts 2021-12-17 14:54:26 -08:00 committed by Paul Hinze
parent 9f320145ff
commit b2c02428ae
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -112,6 +112,7 @@ func New(opts ...Option) (*Runner, error) {
runner.ctx,
runner.logger.Named("plugin-manager"),
)
runner.cleanup(func() { runner.plugins.Close() })
}
if err := runner.plugins.LoadBuiltins(); err != nil {