Sometimes an application wants to handle multiple responses on its own
However, it is not allowed here. For the same device, only the first response will be notified to the user-defined listener
if (!cache.containsKey(ssdpService.getSerialNumber())) {
callback.onServiceDiscovered(ssdpService);
}
cache.put(ssdpService.getSerialNumber(), ssdpService);
Sometimes an application wants to handle multiple responses on its own However, it is not allowed here. For the same device, only the first response will be notified to the user-defined listener