close playwright instance on browser close

This commit is contained in:
Steve Dudenhoeffer 2025-01-01 22:22:42 -05:00
parent 8ad5a34f2d
commit 2ca2bb0742

View File

@ -245,8 +245,9 @@ func (b playWrightBrowser) Open(ctx context.Context, url string, opts OpenPageOp
func (b playWrightBrowser) Close() error { func (b playWrightBrowser) Close() error {
return errors.Join( return errors.Join(
b.ctx.Close(),
b.browser.Close(), b.browser.Close(),
b.ctx.Close(),
b.pw.Stop(),
) )
} }