Skip to content

Commit

Permalink
fix: also kill Firefox when temporary profile is used
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo authored and OrKoN committed Apr 19, 2022
1 parent 8eace6a commit c28e87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/BrowserRunner.ts
Expand Up @@ -164,7 +164,7 @@ export class BrowserRunner {

close(): Promise<void> {
if (this._closed) return Promise.resolve();
if (this._isTempUserDataDir && this._product !== 'firefox') {
if (this._isTempUserDataDir) {
this.kill();
} else if (this.connection) {
// Attempt to close the browser gracefully
Expand Down

0 comments on commit c28e87f

Please sign in to comment.