check profile only once

This commit is contained in:
orignal 2015-05-04 13:01:27 -04:00
parent b8b8d70c7f
commit 7f172964f6
2 changed files with 3 additions and 4 deletions

View file

@ -905,8 +905,7 @@ namespace data
{
return !router->IsHidden () && router != compatibleWith &&
router->IsCompatible (*compatibleWith) &&
(router->GetCaps () & RouterInfo::eHighBandwidth) &&
!router->GetProfile ()->IsBad ();
(router->GetCaps () & RouterInfo::eHighBandwidth);
});
}