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
CompositeDisposable.clear causes java.lang.IllegalStateException: Unbalanced enter/exit #4110
Comments
You're accidentally operating on the same Call from multiple threads which is forbidden. Can you find a way to cancel the Call rather than closing its stream? That should fix. |
I create the |
Somehow you’ve got to figure out how to get the Rx dispose to call |
No action for us to take on this. |
…called from the same thread square/okhttp#4110 (comment)
On the
onStop
ofMyActivity
I have a call tocompositeDisposable.clear()
and for some reason this causes the exception below under Android 7 and 8. I had asked about this before and I had understood that the latest D8 compiler fixed it but I continue getting that exception and as far as I know I have the latest D8 compiler under Android Studio 3.1.3. I'm using OkHtttp 3.10.0. Am I using the composite disposable wrong?The text was updated successfully, but these errors were encountered: