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 ) if( checkList.getState() == CheckListState.RUNNING )
{ {
System.out.println("nomination confirmed for " + checkList.getName());
checkList.handleNominationConfirmed(nominatedPair); 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 //Once there is at least one nominated pair in the valid list for
//every component of the media stream and the state of the //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) if(atLeastOneListSucceeded)
{ {
setState(IceProcessingState.COMPLETED); if(getState() == IceProcessingState.RUNNING)
scheduleTermination(); {
setState(IceProcessingState.COMPLETED);
scheduleTermination();
}
} }
else else
{ {