-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Bug in OnSubscribeFromIterable unsubscribed child logic #3006
Comments
Sorry, can't see the issue with The iterator if (o.isUnsubscribed())
return;
T val = it.next();
if (o.isUnsubscribed())
return;
o.onNext(val); Is this what you were meaning? |
The problem arised when using an We did a quick patch:
|
How about checking
|
@pelecomepibe yep that does look something to avoid |
Observable.from(iterable) - ensure it.hasNext() is not called unnecessarily #3006
Thanks for reporting. Fix released in 1.0.12. |
Hello
The code is missing an additional check for child unsubscription after calling the iterator next method. This is needed when using in conjunction with operators like take, that unsubscribes itself in the onNext method.
Regards
The text was updated successfully, but these errors were encountered: