修复判断是否下载完成逻辑错误

This commit is contained in:
chuzhongzai 2025-08-29 16:16:59 +08:00
parent df6c39ba56
commit c84f11cd8f

View File

@ -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;
} }