Treat the TERMINATED state the same as COMPLETED when handling binding
responses.
This commit is contained in:
parent
89fd7625fe
commit
cd826a1233
@ -1696,7 +1696,7 @@ public class Agent
|
||||
boolean allListsEnded = true;
|
||||
boolean atLeastOneListSucceeded = false;
|
||||
|
||||
if(getState() == IceProcessingState.COMPLETED)
|
||||
if(getState().isEstablished())
|
||||
return;
|
||||
|
||||
List<IceMediaStream> streams = getStreams();
|
||||
|
||||
@ -373,8 +373,7 @@ class ConnectivityCheckClient
|
||||
= checkedPair.getParentComponent().getParentStream();
|
||||
final CheckList checkList = stream.getCheckList();
|
||||
|
||||
if(stream.getParentAgent().getState().equals(
|
||||
IceProcessingState.COMPLETED))
|
||||
if(stream.getParentAgent().getState().isEstablished())
|
||||
return;
|
||||
|
||||
//If all of the pairs in the check list are now either in the Failed or
|
||||
|
||||
@ -87,4 +87,18 @@ public enum IceProcessingState
|
||||
{
|
||||
return stateName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns <tt>true</tt> iff the state is one in which a connection
|
||||
* has been established, that is either <tt>COMPLETED</tt> or
|
||||
* <tt>TERMINATED</tt>.
|
||||
*
|
||||
* @return <tt>true</tt> iff the state is one in which a connection
|
||||
* has been established, that is either <tt>COMPLETED</tt> or
|
||||
* <tt>TERMINATED</tt>.
|
||||
*/
|
||||
public boolean isEstablished()
|
||||
{
|
||||
return this == COMPLETED || this == TERMINATED;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user