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 allListsEnded = true;
|
||||||
boolean atLeastOneListSucceeded = false;
|
boolean atLeastOneListSucceeded = false;
|
||||||
|
|
||||||
if(getState() == IceProcessingState.COMPLETED)
|
if(getState().isEstablished())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
List<IceMediaStream> streams = getStreams();
|
List<IceMediaStream> streams = getStreams();
|
||||||
|
|||||||
@ -373,8 +373,7 @@ class ConnectivityCheckClient
|
|||||||
= checkedPair.getParentComponent().getParentStream();
|
= checkedPair.getParentComponent().getParentStream();
|
||||||
final CheckList checkList = stream.getCheckList();
|
final CheckList checkList = stream.getCheckList();
|
||||||
|
|
||||||
if(stream.getParentAgent().getState().equals(
|
if(stream.getParentAgent().getState().isEstablished())
|
||||||
IceProcessingState.COMPLETED))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//If all of the pairs in the check list are now either in the Failed or
|
//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;
|
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