Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperatorScan - don't call onNext after onError is called #2882

Merged
merged 1 commit into from
Apr 16, 2015

Conversation

davidmoten
Copy link
Collaborator

title says it all

@@ -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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Could you also add Exceptions.throwIfFatal(e); above child.onError like OperatorMap?

@davidmoten
Copy link
Collaborator Author

Added Exceptions.throwIfFatal as suggested by @zsxwing

@akarnokd
Copy link
Member

Thanks.

akarnokd added a commit that referenced this pull request Apr 16, 2015
OperatorScan - don't call onNext after onError is called
@akarnokd akarnokd merged commit cbf8edf into ReactiveX:1.x Apr 16, 2015
@benjchristensen
Copy link
Member

👍

@benjchristensen benjchristensen mentioned this pull request Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants