Fixes some warnings.
This commit is contained in:
parent
6296d8dd4a
commit
947f06ae22
@ -67,7 +67,7 @@ public class StunMappingCandidateHarvester
|
|||||||
{
|
{
|
||||||
super(null, null);
|
super(null, null);
|
||||||
|
|
||||||
this.stunServers = servers;
|
StunMappingCandidateHarvester.stunServers = servers;
|
||||||
|
|
||||||
// we have the list of addresses lets, try discovering
|
// we have the list of addresses lets, try discovering
|
||||||
obtainAddresses();
|
obtainAddresses();
|
||||||
@ -140,15 +140,16 @@ public class StunMappingCandidateHarvester
|
|||||||
TransportAddress addr = iceMediaStream
|
TransportAddress addr = iceMediaStream
|
||||||
.getComponent(Component.RTP).getDefaultCandidate()
|
.getComponent(Component.RTP).getDefaultCandidate()
|
||||||
.getTransportAddress();
|
.getTransportAddress();
|
||||||
this.mask = addr;
|
StunMappingCandidateHarvester.mask = addr;
|
||||||
|
|
||||||
Candidate<?> candidate =
|
Candidate<?> candidate =
|
||||||
iceMediaStream.getComponents().get(0).getDefaultCandidate();
|
iceMediaStream.getComponents().get(0).getDefaultCandidate();
|
||||||
this.face = candidate.getHostAddress();
|
StunMappingCandidateHarvester.face = candidate.getHostAddress();
|
||||||
|
|
||||||
agent.free();
|
agent.free();
|
||||||
|
|
||||||
if(this.mask != null && this.face != null)
|
if(StunMappingCandidateHarvester.mask != null
|
||||||
|
&& StunMappingCandidateHarvester.face != null)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user