Skip to content

Commit

Permalink
fix(groupBy): Fix groupBy to dispose of outer subscription.
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Dec 19, 2016
1 parent dc06e01 commit 04b7757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/groupBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class GroupBySubscriber<T, K, R> extends Subscriber<T> implements RefCountSubscr
}

unsubscribe() {
if (!this.closed && !this.attemptedToUnsubscribe) {
if (!this.closed) {
this.attemptedToUnsubscribe = true;
if (this.count === 0) {
super.unsubscribe();
Expand Down

0 comments on commit 04b7757

Please sign in to comment.