bug #35408 [Notifier] Fix infinite loop on round robin transport (alirezamirsepassi)
This PR was merged into the 5.1-dev branch.
Discussion
----------
[Notifier] Fix infinite loop on round robin transport
| Q | A
| ------------- | ---
| Branch? | master <!-- see below -->
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | - <!-- prefix each issue number with "Fix #", if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
Commits
-------
c16ee4a894
[Notifier] Fix infinite loop on round robin transport
This commit is contained in:
commit
a916c618e1
@ -88,6 +88,7 @@ class RoundRobinTransport implements TransportInterface
|
|||||||
$transport = $this->transports[$cursor];
|
$transport = $this->transports[$cursor];
|
||||||
|
|
||||||
if (!$transport->supports($message)) {
|
if (!$transport->supports($message)) {
|
||||||
|
$cursor = $this->moveCursor($cursor);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user