Various bug fixes

This commit is contained in:
emcho 2010-05-18 10:03:06 +00:00
parent 5875d4dec1
commit e63a42e8f1

View File

@ -1127,12 +1127,8 @@ public class Agent
if( checkList.getState() == CheckListState.RUNNING )
{
System.out.println("nomination confirmed for " + checkList.getName());
checkList.handleNominationConfirmed(nominatedPair);
}
else
System.out.println("ignoring nomination confirmed for " + checkList.getName()
+ "because checklsitstate=" + checkList.getState() + " && pstreamcompleted=" + parentStream.allComponentsAreNominated());
//Once there is at least one nominated pair in the valid list for
//every component of the media stream and the state of the
@ -1179,8 +1175,11 @@ System.out.println("ignoring nomination confirmed for " + checkList.getName()
{
if(atLeastOneListSucceeded)
{
setState(IceProcessingState.COMPLETED);
scheduleTermination();
if(getState() == IceProcessingState.RUNNING)
{
setState(IceProcessingState.COMPLETED);
scheduleTermination();
}
}
else
{