Commit 4f91d86
authored
## Description
- `webRTCEndpoint.ts`: chain `.catch()` before `.then()` on
`mediaEventQueue` so a rejected prior event doesn't propagate the same
rejection to every subsequent `receiveMediaEvent` caller.
## Motivation and Context
Previous order assigned the caught queue back to `mediaEventQueue` but
returned the uncaught `next`, so one failed handler would reject every
queued event after it. Catching first keeps the queue alive and isolates
failures to their own caller.
## Documentation impact
- [ ] Documentation update required
- [ ] Documentation updated [in another PR](_)
- [x] No documentation update required
## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to
not work as expected)
1 parent 611b7f8 commit 4f91d86
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
| 163 | + | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments