hungdluit / flowlib

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

DownloadManager.AddDownload dont add second DownloadItem from one user #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Join hub
2. Download someone filelist
3. Try DownloadManager.AddDownload on two distinct files

What is the expected output? 
It should add 2 different DownloadItem
What do you see instead?
It has only one DownloadItem and 2 equal sources 

What version of the product are you using?
SVN r475

On what operating system?
Windows Vista Sp1

No exeptions thrown

Please provide any additional information below.
It correctly add DownloadItem from 2 different users

Original issue reported on code.google.com by hackw...@gmail.com on 26 Feb 2009 at 10:46

GoogleCodeExporter commented 8 years ago
What info have you stored in DownloadItem.ContentInfo for both DownloadItems?

Do they have the following?
  ID
  TTH
  VIRTUALNAME

If so. What values?

Original comment by blomman84 on 26 Feb 2009 at 11:23

GoogleCodeExporter commented 8 years ago
I'm sorry it's my bug. I set ID for each ContentInfo as Share.Name of that 
user. Now 
I changed it to Share.Name+Random and it works.

Original comment by hackw...@gmail.com on 26 Feb 2009 at 12:35

GoogleCodeExporter commented 8 years ago
Good. Then i will close this issue :)

Why do you set ID?
If you don't set ID, TTH or VirtualName will be used.

Original comment by blomman84 on 26 Feb 2009 at 8:40