Open chwiede opened 6 years ago
Figured out my problem. ServiceBrowser.cancel() should be called in discover_devices
.
Additonally i've added zeroconf as parameter. So it's possible to keep control over this instance. Default it's set to None
, and it will be created in method as before.
Another approach would be to clean up the created zeroconf-instance, but this needs some time.
Please have a look, if accepted i'll make a pull request.
Hi,
thanks for implementing this library, running great except one little thing.
I'm using the lib on a headless raspberry pi in a long-running process. To detect changes of my soundtouch-devices i'm callnig
libsoundtouch.discover_devices
frequently (e.g. all 30 minutes). After some while, i'm getting this error:Testscript
Output
So it looks like every call leaves 3 open threads. I'd looked into the code but i didn't find anything suspicious...
Any ideas?
Thanks in advance!