Sometimes application wants to handle multiple responses on its own
Closed this issue · 2 comments
hanxiao34 commented
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);
loicortola commented
Thanks, PR reviewed
loicortola commented
Hi @hanxiao34 , waiting for a quick fix on your PR before merging and releasing