Skip to content

Commit

Permalink
child.onNext should not be called after child.onError
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoten committed Apr 16, 2015
1 parent 131a663 commit 580dad2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/rx/internal/operators/OperatorScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public void onNext(T currentValue) {
this.value = accumulator.call(this.value, currentValue);
} catch (Throwable e) {
child.onError(OnErrorThrowable.addValueAsLastCause(e, currentValue));
return;
}
}
child.onNext(this.value);
Expand Down

0 comments on commit 580dad2

Please sign in to comment.