mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves issue with concurrent access of channel panels in channel list
This commit is contained in:
@@ -22,7 +22,8 @@ import java.awt.Component;
|
|||||||
import java.awt.Point;
|
import java.awt.Point;
|
||||||
import java.awt.event.MouseEvent;
|
import java.awt.event.MouseEvent;
|
||||||
import java.awt.event.MouseListener;
|
import java.awt.event.MouseListener;
|
||||||
import java.util.HashMap;
|
import java.util.Map;
|
||||||
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
import javax.swing.JMenu;
|
import javax.swing.JMenu;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
@@ -53,8 +54,8 @@ public class ChannelList extends JPanel implements ChannelEventListener
|
|||||||
|
|
||||||
private final static Logger mLog = LoggerFactory.getLogger( ChannelList.class );
|
private final static Logger mLog = LoggerFactory.getLogger( ChannelList.class );
|
||||||
|
|
||||||
private HashMap<Channel,ChannelCollectionPanel> mDisplayedPanels =
|
private Map<Channel,ChannelCollectionPanel> mDisplayedPanels =
|
||||||
new HashMap<Channel,ChannelCollectionPanel>();
|
new ConcurrentHashMap<Channel,ChannelCollectionPanel>();
|
||||||
|
|
||||||
private PlaylistManager mPlaylistManager;
|
private PlaylistManager mPlaylistManager;
|
||||||
private SettingsManager mSettingsManager;
|
private SettingsManager mSettingsManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user