Simplify code.
This commit is contained in:
parent
b228636412
commit
3a49e56475
@ -140,16 +140,15 @@ public class StunMappingCandidateHarvester
|
|||||||
TransportAddress addr = iceMediaStream
|
TransportAddress addr = iceMediaStream
|
||||||
.getComponent(Component.RTP).getDefaultCandidate()
|
.getComponent(Component.RTP).getDefaultCandidate()
|
||||||
.getTransportAddress();
|
.getTransportAddress();
|
||||||
StunMappingCandidateHarvester.mask = addr;
|
mask = addr;
|
||||||
|
|
||||||
Candidate<?> candidate =
|
Candidate<?> candidate =
|
||||||
iceMediaStream.getComponents().get(0).getDefaultCandidate();
|
iceMediaStream.getComponents().get(0).getDefaultCandidate();
|
||||||
StunMappingCandidateHarvester.face = candidate.getHostAddress();
|
face = candidate.getHostAddress();
|
||||||
|
|
||||||
agent.free();
|
agent.free();
|
||||||
|
|
||||||
if(StunMappingCandidateHarvester.mask != null
|
if (mask != null && face != null)
|
||||||
&& StunMappingCandidateHarvester.face != null)
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user