minor #30788 [Mailer] Remove unneeded catch in ping() (sstok)
This PR was merged into the 4.3-dev branch.
Discussion
----------
[Mailer] Remove unneeded catch in ping()
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes?
| Fixed tickets |
| License | MIT
| Doc PR |
The stop() method doesn't throw.
Commits
-------
907adf47e3
[Mailer] Remove unneeded catch in ping()
This commit is contained in:
commit
c9b8ca631c
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user