Skip to content

Commit

Permalink
fix: ignore curl exceptions when closing webdriver inside destructor (F…
Browse files Browse the repository at this point in the history
…ixes symfony#466, fixes symfony#544)
  • Loading branch information
mtorromeo committed Aug 21, 2022
1 parent 0e1b5ad commit f3eaee9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ public function __wakeup(): void

public function __destruct()
{
$this->quit();
try {
$this->quit();
} catch (\Facebook\WebDriver\Exception\WebDriverCurlException) {
// ignore
}
}

public function start(): void
Expand Down

0 comments on commit f3eaee9

Please sign in to comment.