diff --git a/src/org/ice4j/ice/Agent.java b/src/org/ice4j/ice/Agent.java index 8683eb1..d1e2f52 100644 --- a/src/org/ice4j/ice/Agent.java +++ b/src/org/ice4j/ice/Agent.java @@ -178,7 +178,7 @@ public class Agent * repair the case where both agents believe to have the controlling or the * controlled role. */ - private final long tieBreaker; + private long tieBreaker; /** * Determines whether this is the controlling agent in a an ICE interaction. @@ -311,6 +311,16 @@ public class Agent nominator = new DefaultNominator(this); } + /** + * Sets the tie breaker value. Note that to this should be set early (before + * connectivity checks start). + * @param tieBreakerInput the value to set. + */ + public void setTieBreaker(long tieBreakerInput) + { + tieBreaker = tieBreakerInput; + } + /** * Creates a new media stream and stores it. *