Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #2124 UnicastProcessor discards when onNext/cancel races
This is a follow-up to #2125, this time targeting the same class of discarding race but on `UnicastProcessor`. As there is a chance that the race references `actual` (to resolve the discard hook) AFTER `cancel()`, we need to keep that field populated. It was nulled out for the benefit of `downstreamCount()` (see #980) so we replace that by a boolean, set to true when subscribed. Reviewed-in: #2126
- Loading branch information
1 parent
3d3e3b9
commit 9a76624
Showing
3 changed files
with
512 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.