Cluster build fix.

This commit is contained in:
Adam Ierymenko 2017-04-17 10:12:13 -07:00
parent ba5d0cc2f9
commit 95e5345cc3
2 changed files with 3 additions and 6 deletions

View file

@ -316,11 +316,8 @@ public:
*/
inline bool hasLocalClusterOptimalPath(uint64_t now) const
{
for(unsigned int p=0,np=_numPaths;p<np;++p) {
if ( (_paths[p].path->alive(now)) && (!_paths[p].localClusterSuboptimal) )
return true;
}
return false;
Mutex::Lock _l(_paths_m);
return ( ((_v4Path.p)&&(_v4Path.p->alive(now))&&(!_v4Path.localClusterSuboptimal)) || ((_v6Path.p)&&(_v6Path.p->alive(now))&&(!_v6Path.localClusterSuboptimal)) );
}
#endif