Skip to content

Commit

Permalink
fix(race): ignore sources after first complete/error
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed May 25, 2019
1 parent af8037a commit 9252102
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/internal/observable/race.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,14 @@ export class RaceSubscriber<T> extends OuterSubscriber<T, T> {

this.destination.next(innerValue);
}

notifyComplete(innerSub: InnerSubscriber<T, T>): void {
this.hasFirst = true;
super.notifyComplete(innerSub);
}

notifyError(error: any, innerSub: InnerSubscriber<T, T>): void {
this.hasFirst = true;
super.notifyError(error, innerSub);
}
}

0 comments on commit 9252102

Please sign in to comment.