mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: use browsers for launchers (#9937)
This commit is contained in:
@@ -270,10 +270,9 @@ class Process {
|
||||
|
||||
async close(): Promise<void> {
|
||||
await this.#runHooks();
|
||||
if (this.#exited) {
|
||||
return this.#browserProcessExiting;
|
||||
if (!this.#exited) {
|
||||
this.kill();
|
||||
}
|
||||
this.kill();
|
||||
return this.#browserProcessExiting;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user