Fixes an error introduced in a previous optimization of the canReach() method

This commit is contained in:
emcho 2010-02-26 09:13:53 +00:00
parent a6532a19de
commit a584494d2d
2 changed files with 6 additions and 5 deletions

View File

@ -232,8 +232,7 @@ public class TransportAddress
*/
public boolean canReach(TransportAddress dst)
{
return
(getTransport() == dst.getTransport())
&& (isIPv6() != dst.isIPv6());
return (getTransport() == dst.getTransport())
&& (isIPv6() == dst.isIPv6());
}
}

View File

@ -87,9 +87,9 @@ public class StunCandidateHarvester
HostCandidate hostCand = (HostCandidate)cand;
startResolvingCandidate(hostCand);
waitForResolutionEnd();
}
waitForResolutionEnd();
}
/**
@ -265,4 +265,6 @@ public class StunCandidateHarvester
base.getParentComponent().addLocalCandidate(srvrRflxCand);
}
}