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

Fix take swallowing exception if thrown by exactly the nth onNext call to it. #3101

Merged
merged 1 commit into from Jul 24, 2015

Conversation

akarnokd
Copy link
Member

Fixes the case uncovered by #3095.

@akarnokd akarnokd added the Bug label Jul 23, 2015
if (++count >= limit) {
completed = true;
}
boolean c = ++count >= limit;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe comment or better variable name? Also, it can be final.

akarnokd added a commit that referenced this pull request Jul 24, 2015
Fix take swallowing exception if thrown by exactly the nth onNext call to it.
@akarnokd akarnokd merged commit 84b92bb into ReactiveX:1.x Jul 24, 2015
@akarnokd akarnokd deleted the TakeErrorHandlingFix branch July 24, 2015 09:39
@benjchristensen
Copy link
Member

Odd bug. Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants