mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Removed cleanup for jmDNS
This commit is contained in:
parent
4b0a976686
commit
3f9bb3e58c
@ -43,11 +43,13 @@ public class NetworkDiscovery implements Discovery, ServiceListener {
|
||||
|
||||
@Override
|
||||
public void stop() {
|
||||
try {
|
||||
jmDNS.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// Removed cleanup: is extremely slow on closing
|
||||
|
||||
// try {
|
||||
// jmDNS.close();
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -74,7 +76,8 @@ public class NetworkDiscovery implements Discovery, ServiceListener {
|
||||
|
||||
@Override
|
||||
public void serviceResolved(ServiceEvent serviceEvent) {
|
||||
String address = serviceEvent.getInfo().getInet4Addresses()[0].getHostAddress();
|
||||
String address = serviceEvent.getInfo().getInet4Addresses()[0]
|
||||
.getHostAddress();
|
||||
String name = serviceEvent.getName();
|
||||
|
||||
BoardPort port = new BoardPort();
|
||||
|
Loading…
Reference in New Issue
Block a user