Skip to content

Commit

Permalink
WebdriverAgent: remove duplicate call to this._driver.quit()
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed May 11, 2021
1 parent 1224cee commit dcae6ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/WebdriverAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ class WebdriverAgent extends BrowserAgent {
baseP = this._restartP;
}
await baseP;
await this._driver.quit();
await this._driver.quit();
if (this._driver) {
await this._driver.quit();
}
return super.destroy();
}
}
Expand Down

0 comments on commit dcae6ea

Please sign in to comment.