Skip to content

Commit

Permalink
fix(mergeMapTo): mergeMapTo result should complete
Browse files Browse the repository at this point in the history
Fix mergeMapTo operator to properly complete when all inner Observables
have completed and so has the outer completed. Fix the `active` count
in mergeMapTo to increment when a new inner is opened, and to decrement
when an existing inner is closed.
  • Loading branch information
Andre Medeiros authored and benlesh committed Oct 27, 2015
1 parent aa78afb commit 6f9859e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators/mergeMapTo-support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class MergeMapToSubscriber<T, R, R2> extends OuterSubscriber<T, R> {
if (ish === errorObject) {
destination.error(ish.e);
} else {
this.active--;
this.active++;
this._innerSub(ish, destination, resultSelector, value, index);
}
} else {
Expand Down

0 comments on commit 6f9859e

Please sign in to comment.