1
0
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:
Federico Fissore 2013-05-06 12:26:12 +02:00
parent c09f941822
commit e1049aacc9

View File

@ -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