mirror of https://github.com/zlatinb/muwire
filter own destination if returned from hostcache
parent
1954ffc999
commit
0630727892
|
@ -137,7 +137,11 @@ class CacheClient {
|
||||||
return
|
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))
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue