resourcepool/ssdp-client

Sometimes application wants to handle multiple responses on its own

Closed this issue · 2 comments

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);

Thanks, PR reviewed

Hi @hanxiao34 , waiting for a quick fix on your PR before merging and releasing