Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x: fix Single.takeUntil() other triggering twice #4962

Merged
merged 1 commit into from
Jan 6, 2017

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Jan 6, 2017

This PR fixes the double termination of Single.takeUntil(Publisher) when the other fires an item and then completes while ignoring the cancellation in between, trying to signal a CancellationException again which is routed to the RxJavaPlugins.onError and crashing on Android.

In addition, the Maybe.takeUntil() received a unit test verifying this doesn't also happen to it.

Related: #4961.

@akarnokd akarnokd added this to the 2.0 backlog milestone Jan 6, 2017
@codecov-io
Copy link

codecov-io commented Jan 6, 2017

Current coverage is 95.60% (diff: 100%)

Merging #4962 into 2.x will decrease coverage by <.01%

@@                2.x      #4962   diff @@
==========================================
  Files           587        587          
  Lines         37669      37671     +2   
  Methods           0          0          
  Messages          0          0          
  Branches       5675       5676     +1   
==========================================
  Hits          36016      36016          
- Misses          693        704    +11   
+ Partials        960        951     -9   

Powered by Codecov. Last update 71330c0...7818169

@akarnokd akarnokd merged commit b917754 into ReactiveX:2.x Jan 6, 2017
@akarnokd akarnokd deleted the TakeUntilFix branch January 6, 2017 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants