filter own destination if returned from hostcache

pull/4/head
Zlatin Balevsky 2018-07-24 04:16:00 +01:00
parent 1954ffc999
commit 0630727892
1 changed files with 5 additions and 1 deletions

View File

@ -137,7 +137,11 @@ class CacheClient {
return
}
pong.pongs.asList().each { eventBus.publish(new HostDiscoveredEvent(destination: new Destination(it))) }
pong.pongs.asList().each {
Destination dest = new Destination(it)
if (!session.getMyDestination().equals(dest))
eventBus.publish(new HostDiscoveredEvent(destination: dest))
}
}