This commit is contained in:
Adam Ierymenko 2017-07-06 11:56:46 -07:00
parent cd63ecd3f3
commit 640ad577d1
11 changed files with 1 additions and 223 deletions

View file

@ -395,11 +395,8 @@ void Topology::doPeriodicTasks(void *tPtr,uint64_t now)
Address *a = (Address *)0;
SharedPtr<Peer> *p = (SharedPtr<Peer> *)0;
while (i.next(a,p)) {
if ( (!(*p)->isAlive(now)) && (std::find(_upstreamAddresses.begin(),_upstreamAddresses.end(),*a) == _upstreamAddresses.end()) ) {
if ( (!(*p)->isAlive(now)) && (std::find(_upstreamAddresses.begin(),_upstreamAddresses.end(),*a) == _upstreamAddresses.end()) )
_peers.erase(*a);
} else {
(*p)->writeState(tPtr,now);
}
}
}