Don't add pairs when the remote port is 0 (as can be when a remote cand is an active TCP cand).
This commit is contained in:
parent
caea84ac07
commit
e4c914b943
@ -387,7 +387,8 @@ public class Component
|
||||
//pair each of the new remote candidates with each of our locals
|
||||
for(RemoteCandidate remoteCnd : remoteUpdateCandidates)
|
||||
{
|
||||
if(localCnd.canReach(remoteCnd))
|
||||
if(localCnd.canReach(remoteCnd)
|
||||
&& remoteCnd.getTransportAddress().getPort() != 0)
|
||||
{
|
||||
// A single LocalCandidate might be/become connected
|
||||
// to more more than one remote address, and that's ok
|
||||
|
||||
@ -385,7 +385,8 @@ public class IceMediaStream
|
||||
|
||||
for(RemoteCandidate remoteCnd : remoteCnds)
|
||||
{
|
||||
if(localCnd.canReach(remoteCnd))
|
||||
if(localCnd.canReach(remoteCnd)
|
||||
&& remoteCnd.getTransportAddress().getPort() != 0)
|
||||
{
|
||||
CandidatePair pair = new CandidatePair(localCnd,
|
||||
remoteCnd);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user