修复判断是否下载完成逻辑错误
This commit is contained in:
parent
df6c39ba56
commit
c84f11cd8f
@ -147,7 +147,7 @@ public class DownloadCheckService {
|
|||||||
*/
|
*/
|
||||||
public boolean addToQueue(GalleryTask galleryTask){
|
public boolean addToQueue(GalleryTask galleryTask){
|
||||||
//是否含有名字,进行中任务一般有名字,没有名字则肯定为初始任务,存在名字至少在下载路径出现过
|
//是否含有名字,进行中任务一般有名字,没有名字则肯定为初始任务,存在名字至少在下载路径出现过
|
||||||
if(galleryTask.getName() == null || !galleryTask.getName().isEmpty()){
|
if(galleryTask.getName() == null || galleryTask.getName().isEmpty()){
|
||||||
queue.putIfAbsent(galleryTask.getGid(), galleryTask);
|
queue.putIfAbsent(galleryTask.getGid(), galleryTask);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user