We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b93df commit 023d23cCopy full SHA for 023d23c
lib/charty/backends/backend_helpers/playwright_manager.rb
@@ -52,18 +52,10 @@ module PlaywrightManager
52
end
53
54
module_function def shutdown
55
- if @_context
56
- @_context.close
57
- @_context = nil
58
- end
59
- if @_browser
60
- @_browser.close
61
- @_browser = nil
62
63
- if @_playwright_exec
64
- @_playwright_exec.stop
65
- @_playwright_exec = nil
66
+ @_playwright_exec.stop if @_playwright_exec
+ @_playwright_exec = nil
+ @_context = nil
+ @_browser = nil
67
68
69
at_exit do
0 commit comments