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) public boolean canReach(TransportAddress dst)
{ {
return return (getTransport() == dst.getTransport())
(getTransport() == dst.getTransport()) && (isIPv6() == dst.isIPv6());
&& (isIPv6() != dst.isIPv6());
} }
} }

View File

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