mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
forcing a new requestServiceInfo until we get the remote IP address
This commit is contained in:
parent
c09f941822
commit
e1049aacc9
@ -25,7 +25,11 @@ public class Discovery implements ServiceListener {
|
||||
|
||||
@Override
|
||||
public void serviceAdded(ServiceEvent serviceEvent) {
|
||||
serviceEvent.getDNS().requestServiceInfo(serviceEvent.getInfo().getServer(), serviceEvent.getName());
|
||||
serviceEvent.getDNS().requestServiceInfo(serviceEvent.getType(), serviceEvent.getName());
|
||||
ServiceInfo serviceInfo = serviceEvent.getDNS().getServiceInfo(serviceEvent.getType(), serviceEvent.getName());
|
||||
if (serviceInfo != null) {
|
||||
serviceEvent.getDNS().requestServiceInfo(serviceEvent.getType(), serviceEvent.getName());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user