Skip to content

Commit

Permalink
fix(mergeMap): fix nested mergeMaps
Browse files Browse the repository at this point in the history
Don't add self as parent.
Closes ReactiveX#4071
  • Loading branch information
cartant committed Aug 31, 2018
1 parent d389e13 commit efa129b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/internal/Subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ export class Subscriber<T> extends Subscription implements Observer<T> {

/** @deprecated This is an internal implementation detail, do not use. */
_addParentTeardownLogic(parentTeardownLogic: TeardownLogic) {
this._parentSubscription = this.add(parentTeardownLogic);
if (parentTeardownLogic !== this) {
this._parentSubscription = this.add(parentTeardownLogic);
}
}

/** @deprecated This is an internal implementation detail, do not use. */
Expand Down

0 comments on commit efa129b

Please sign in to comment.