Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Stop resolver and query when no longer needed #34

Closed
wants to merge 1 commit into from

Conversation

namannik
Copy link

@namannik namannik commented Dec 16, 2017

When using DNSSDBindable in my app, I used DNSSDActivity.java as a guide. I found that lots and lots of threads were being created, but never destroyed. This was leading to performance issues and occasional OutOfMemoryError exceptions.

I followed your recommendation here regarding stopping resolve and query when no longer needed, and the issue with numerous threads has been fixed.

This pull request updates the example app with this recommendation.

@andriydruk
Copy link
Owner

Thanks. I'm going to investigate this issue. Looks like a bug in my library, service should be stopped after calling callback

@andriydruk
Copy link
Owner

Hi @namannik

Thanks for your help. I found that it was a bug in library.
I added auto stop for this 2 kind of operations, that's why there are no need to make this changes

Check out new version https://github.com/andriydruk/RxDNSSD/releases/tag/0.9.7

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

Successfully merging this pull request may close these issues.

2 participants