tonyofrancis / Fetch

The best file downloader library for Android
https://www.meta.stackoverflow.com/tags/fetch2
Apache License 2.0
1.63k stars 328 forks source link

Repeat download a file and cause unknown error #642

Open GaoYuCan opened 1 year ago

GaoYuCan commented 1 year ago

When the value of EnqueueAction is INCREMENT_FILE_NAME, repeated downloading a file will cause a unknown error. After debugging, I found the reason, and there is a bug in prepareDownloadInfoForEnqueue funcation of FetchHandlerImpl. As shown in the following figure. image After modifying the code below, it can work normally. image