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 LambdaObserver calling dispose when terminating #4957

Merged
merged 1 commit into from
Jan 4, 2017

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Jan 4, 2017

This PR changes the LambdaObserver to not dispose the upstream when it receives a terminal event. The LambdaSubscriber has been previoulsy updated but apparently not synced.

Reported in #4956.

This PR fixes 2 unit test methods of Flowable.ignoreElements() as they were not actually testing the operator (discovered when the Observable.ignoreElements() initially failed after the patch to LambdaObserver).

@codecov-io
Copy link

codecov-io commented Jan 4, 2017

Current coverage is 95.68% (diff: 100%)

Merging #4957 into 2.x will decrease coverage by 0.05%

@@                2.x      #4957   diff @@
==========================================
  Files           587        587          
  Lines         37551      37551          
  Methods           0          0          
  Messages          0          0          
  Branches       5655       5655          
==========================================
- Hits          35950      35929    -21   
- Misses          676        685     +9   
- Partials        925        937    +12   

Powered by Codecov. Last update 19fac95...f7287ce

@akarnokd akarnokd merged commit 479f89f into ReactiveX:2.x Jan 4, 2017
@akarnokd akarnokd deleted the DoFinallyOrder branch January 4, 2017 15:01
ZacSweers added a commit to uber/AutoDispose that referenced this pull request Feb 16, 2017
Matches ReactiveX/RxJava#4957, which we were doing wrong. Note the lifecycle disposable is not lazily set because that's internally managed and non-terminating.
ZacSweers added a commit to uber/AutoDispose that referenced this pull request Feb 26, 2017
Matches ReactiveX/RxJava#4957, which we were doing wrong. Note the lifecycle disposable is not lazily set because that's internally managed and non-terminating.
Matt-Hallcok added a commit to Matt-Hallcok/AutoDispose that referenced this pull request Dec 28, 2019
Matches ReactiveX/RxJava#4957, which we were doing wrong. Note the lifecycle disposable is not lazily set because that's internally managed and non-terminating.
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