Fixes minor issues
This commit is contained in:
parent
02adbe9da5
commit
e1f3bb01b7
@ -563,10 +563,13 @@ public abstract class Candidate
|
|||||||
*
|
*
|
||||||
* @return the <tt>TransportAddress</tt> of the base if this is a reflexive
|
* @return the <tt>TransportAddress</tt> of the base if this is a reflexive
|
||||||
* candidate, the mapped address in the case of a relayed candidate, and
|
* candidate, the mapped address in the case of a relayed candidate, and
|
||||||
* <tt>null</tt> if this is a host candidate.
|
* <tt>null</tt> if this is a host or a remote candidate.
|
||||||
*/
|
*/
|
||||||
public TransportAddress getRelatedAddress()
|
public TransportAddress getRelatedAddress()
|
||||||
{
|
{
|
||||||
|
if(this instanceof RemoteCandidate)
|
||||||
|
return null;
|
||||||
|
|
||||||
if ( getType () == CandidateType.SERVER_REFLEXIVE_CANDIDATE
|
if ( getType () == CandidateType.SERVER_REFLEXIVE_CANDIDATE
|
||||||
|| getType () == CandidateType.PEER_REFLEXIVE_CANDIDATE)
|
|| getType () == CandidateType.PEER_REFLEXIVE_CANDIDATE)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -323,7 +323,7 @@ public class Component
|
|||||||
|
|
||||||
if(remoteCandidatesCount > 0)
|
if(remoteCandidatesCount > 0)
|
||||||
{
|
{
|
||||||
buff.append("\n" + remoteCandidatesCount + " rocal candidates:");
|
buff.append("\n" + remoteCandidatesCount + " remote candidates:");
|
||||||
|
|
||||||
synchronized(remoteCandidates)
|
synchronized(remoteCandidates)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -33,7 +33,7 @@ public class StunDatagramPacketFilter
|
|||||||
* @return <tt>true</tt> if this <tt>DatagramPacketFilter</tt> accepts the
|
* @return <tt>true</tt> if this <tt>DatagramPacketFilter</tt> accepts the
|
||||||
* <tt>DatagramPacket</tt> which represents a STUN message with the
|
* <tt>DatagramPacket</tt> which represents a STUN message with the
|
||||||
* specified STUN method; otherwise, <tt>false</tt>
|
* specified STUN method; otherwise, <tt>false</tt>
|
||||||
* @see BaseStunDatagramPacketFilter#acceptMethod(char)
|
* @see AbstractStunDatagramPacketFilter#acceptMethod(char)
|
||||||
*/
|
*/
|
||||||
public boolean acceptMethod(char method)
|
public boolean acceptMethod(char method)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user