Fixes an error introduced in a previous optimization of the canReach() method
This commit is contained in:
parent
a6532a19de
commit
a584494d2d
@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user