Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9b8ca6

Browse filesBrowse files
committed
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 ------- 907adf4 [Mailer] Remove unneeded catch in ping()
2 parents c128d50 + 907adf4 commit c9b8ca6
Copy full SHA for c9b8ca6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed

‎src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,7 @@ private function ping(): void
219219
try {
220220
$this->executeCommand("NOOP\r\n", [250]);
221221
} catch (TransportExceptionInterface $e) {
222-
try {
223-
$this->stop();
224-
} catch (TransportExceptionInterface $e) {
225-
}
222+
$this->stop();
226223
}
227224
}
228225

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.