Loops on copy of parent checklist to prevent ConcurrentModificationException.

This commit is contained in:
paweldomas 2013-11-13 20:48:21 +00:00
parent f0cb093ff3
commit 8cfe630e79

View File

@ -643,7 +643,8 @@ class ConnectivityCheckClient
synchronized(this)
{
CheckList parentCheckList = parentStream.getCheckList();
Vector<CandidatePair> parentCheckList
= new Vector<CandidatePair>(parentStream.getCheckList());
for(CandidatePair pair : parentCheckList)
if ((pair.getState() == CandidatePairState.FROZEN) &&