Don't call unregisterService(...) then unregisterAllSerivces().

The later will unregister the service we were explicitly unregistering anyway.
This commit is contained in:
Peter Serwylo 2016-02-26 09:31:38 +11:00
parent 1505d21781
commit cd3a064a5a

@ -78,12 +78,9 @@ public class BonjourBroadcast extends SwapType {
private void clearCurrentMDNSService() {
if (jmdns != null) {
if (pairService != null) {
jmdns.unregisterService(pairService);
pairService = null;
}
jmdns.unregisterAllServices();
Utils.closeQuietly(jmdns);
pairService = null;
jmdns = null;
}
}