andriydruk / RxDNSSD

Android version of mDNSResponder
Apache License 2.0
298 stars 75 forks source link

Extend the constructors of RxDnssdEmbedded to pass the stoptimedelay attribute #208

Open bobekos opened 3 years ago

bobekos commented 3 years ago

To have the possibility to cancel the service directly after the dispose you should be able to pass the "stopTimeDelay" attribute directly to the constructor.

It is useful to fix rare crashes that occur when an exception is thrown within the timeout. In my case it was because the app forces a Wifi switch immediately after dispose the stream.