Skip to content

Commit

Permalink
fix(bufferToggle): fix unsubscriptions of closing Observable
Browse files Browse the repository at this point in the history
Fix bufferToggle to unsubscribe from the closing Observables once the bufferToggle Observable is
unsubscribed.
  • Loading branch information
staltz authored and benlesh committed Dec 8, 2015
1 parent 83349df commit 439b641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/operator/bufferToggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ class BufferToggleSubscriber<T, O> extends Subscriber<T> {
contexts.push(context);
const subscriber = new BufferToggleClosingsSubscriber(this, context);
const subscription = closingNotifier._subscribe(subscriber);
this.add(context.subscription.add(subscription));
context.subscription.add(subscription);
this.add(subscription);
}
}

Expand Down

0 comments on commit 439b641

Please sign in to comment.