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

Fixes DisconnectionRouter leaking subscription #353

Merged
merged 3 commits into from
Jan 8, 2018

Conversation

dariuszseweryn
Copy link
Owner

DisconnectionRouter was subscribing to adapterStateObservable which uses BroadcastReceiver on a Context internally. The adapterStateObservable should be unsubscribed as soon as disconnection happens. It was not the case due to lack of .first() operator.

The `adapterStateObservable` internally uses a BroadcastReceiver which may leak. It should be unsubscribed as soon as disconnection happens.
@dariuszseweryn dariuszseweryn added the bug Bug that is caused by the library label Jan 8, 2018
@dariuszseweryn dariuszseweryn added this to the 1.5.0 milestone Jan 8, 2018
@dariuszseweryn dariuszseweryn self-assigned this Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is caused by the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants