Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
Remove old MDNS discovery results (eclipse-archived#6425)
Browse files Browse the repository at this point in the history
...after completion of a scan, so that it becomes symmetric to
what the UPnP discovery service does (and no stale results keep
hanging around).

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
  • Loading branch information
sjsf authored and kaikreuzer committed Nov 1, 2018
1 parent 2a9f6aa commit de5512b
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -120,6 +120,12 @@ protected void startScan() {
startScan(false);
}

@Override
protected synchronized void stopScan() {
removeOlderResults(getTimestampOfLastScan());
super.stopScan();
}

private void startScan(boolean isBackground) {
scheduler.schedule(new Runnable() {
@Override
Expand Down

0 comments on commit de5512b

Please sign in to comment.