fixed concurrent modification exception on m_activeDownloads
git-svn-id: svn://anubis/gvsu@62 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
1 parent
816b148600
commit
afba8a711a
1 file changed
+3
-1
@@ -163,8 +163,10 @@ public class KaZaGUI extends JFrame
|
||||
synchronized (m_activeDownloads)
|
||||
{
|
||||
Set<Integer> indices = m_activeDownloads.keySet();
|
||||
for (Integer i : indices)
|
||||
Object[] arr = indices.toArray();
|
||||
for (Object o : arr)
|
||||
{
|
||||
Integer i = (Integer) o;
|
||||
if (!m_client.isDownloadActive(i))
|
||||
{
|
||||
KaZaClient.SearchResult sr = m_activeDownloads.get(i);
|
||||
|
||||
Reference in new issue
Block a user