Skip to content

Commit

Permalink
null out _unsubscribe after unsubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker authored Jun 1, 2020
1 parent d608cf3 commit f5e5cd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/Subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class Subscription implements SubscriptionLike {
// null out _subscriptions first so any child subscriptions that attempt
// to remove themselves from this subscription will noop
this._subscriptions = null;
(<any> this)._unsubscribe = null;

if (_parentOrParents instanceof Subscription) {
_parentOrParents.remove(this);
Expand Down

0 comments on commit f5e5cd3

Please sign in to comment.