ardar / flowlib

Automatically exported from code.google.com/p/flowlib
1 stars 0 forks source link

DownloadManager.RemoveDownload removes source even if it related to other DownloadItems #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add several DownloadItems with one source to DownloadManager
2. Remove one DownloadItem

What is the expected output? What do you see instead?
After remove one DownloadItem sourceItems will be empty but should not.

What version of the product are you using?
SVN r478

On what operating system?
Windows Vista SP1

Please provide any additional information below.
I think it can be fixed by changing in RemoveDownload implementation 
sourceItems.Remove(var);
to
if(tmpSrc.Count==0) sourceItems.Remove(var);

Original issue reported on code.google.com by hackw...@gmail.com on 11 Mar 2009 at 4:51

GoogleCodeExporter commented 8 years ago
SVN updated.
Thanks :)

Original comment by blomman84 on 15 Mar 2009 at 10:08