Fixes some warnings.

This commit is contained in:
damencho 2015-11-06 15:45:15 -06:00
parent 6296d8dd4a
commit 947f06ae22

View File

@ -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;
} }