Don't call unregisterService(...)
then unregisterAllSerivces()
.
The later will unregister the service we were explicitly unregistering anyway.
This commit is contained in:
parent
1505d21781
commit
cd3a064a5a
@ -78,12 +78,9 @@ public class BonjourBroadcast extends SwapType {
|
|||||||
|
|
||||||
private void clearCurrentMDNSService() {
|
private void clearCurrentMDNSService() {
|
||||||
if (jmdns != null) {
|
if (jmdns != null) {
|
||||||
if (pairService != null) {
|
|
||||||
jmdns.unregisterService(pairService);
|
|
||||||
pairService = null;
|
|
||||||
}
|
|
||||||
jmdns.unregisterAllServices();
|
jmdns.unregisterAllServices();
|
||||||
Utils.closeQuietly(jmdns);
|
Utils.closeQuietly(jmdns);
|
||||||
|
pairService = null;
|
||||||
jmdns = null;
|
jmdns = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user