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

fix(catch): update the catch operator to dispose inner subscriptions if the catch subscription is disposed #2271

Merged
merged 1 commit into from
Jan 13, 2017

Conversation

trxcllnt
Copy link
Member

@trxcllnt trxcllnt commented Jan 11, 2017

This is a non-breaking change to make track and dispose its subscription to the Observable returned from the catch selector if the catch subscriber is disposed early.

Without this fix, subscriptions to Observables returned by the catch selector don't get cleaned up, and will leak memory if the catch is used on a Subject, and the catch selector returns a sequence that uses the second caught Observable argument :-(

…if the catch subscription is di

This is a non-breaking change to make track and dispose its subscription to the Observable returned
from the catch selector if the catch subscriber is disposed early.
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 69a0fea on trxcllnt:fix-catch-unsubscribe into ** on ReactiveX:master**.

@staltz
Copy link
Member

staltz commented Jan 12, 2017

LGTM

1 similar comment
@benlesh
Copy link
Member

benlesh commented Jan 13, 2017

LGTM

@benlesh benlesh merged commit 8a1e089 into ReactiveX:master Jan 13, 2017
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants