[Mailer] Remove unneeded catch in ping()

The stop() method doesn't throw
This commit is contained in:
Sebastiaan Stok 2019-03-30 16:56:09 +01:00 committed by GitHub
parent c128d50196
commit 907adf47e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,10 +219,7 @@ class SmtpTransport extends AbstractTransport
try {
$this->executeCommand("NOOP\r\n", [250]);
} catch (TransportExceptionInterface $e) {
try {
$this->stop();
} catch (TransportExceptionInterface $e) {
}
$this->stop();
}
}