Updated to use concurrent containers to avoid concurrent modification

exceptions.
This commit is contained in:
denny
2016-01-22 16:30:58 -05:00
parent cffc6b6eed
commit abca4ebbd7
2 changed files with 14 additions and 19 deletions

View File

@@ -128,10 +128,13 @@ public class ChannelList extends JPanel implements ChannelEventListener
public void setSelectedChannel( Channel channel )
{
/* Send channel selection to each channel panel */
for( ChannelCollectionPanel panel: mDisplayedPanels.values() )
synchronized( mDisplayedPanels )
{
panel.setSelectedChannel( channel );
/* Send channel selection to each channel panel */
for( ChannelCollectionPanel panel: mDisplayedPanels.values() )
{
panel.setSelectedChannel( channel );
}
}
}