Re-assign services from dead endoints.

This commit is contained in:
Gunnar Beutner 2012-06-22 08:30:36 +02:00
parent e8a44ad2fb
commit f585dc1b29
1 changed files with 2 additions and 1 deletions
components/delegation

View File

@ -202,7 +202,8 @@ void DelegationComponent::DelegationTimerHandler(void)
/* don't re-assign service if the checker is still valid
* and doesn't have too many services */
if (oldEndpoint && find(candidates.begin(), candidates.end(), oldEndpoint) != candidates.end() &&
if (oldEndpoint && oldEndpoint->IsConnected() &&
find(candidates.begin(), candidates.end(), oldEndpoint) != candidates.end() &&
histogram[oldEndpoint] <= avg_services + overflow_tolerance)
continue;