修复判断是否下载完成逻辑错误
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;
|
||||||
}
|
}
|
||||||
@ -168,7 +168,7 @@ public class DownloadCheckService {
|
|||||||
|
|
||||||
|
|
||||||
//异常情况,发送通知
|
//异常情况,发送通知
|
||||||
CustomUtil.notifyMe(String.format("任务:%s存在名字,但是下载路径为空且不存在压缩包", galleryTask.getName() ));
|
CustomUtil.notifyMe(String.format("任务:%s存在名字,但是下载路径为空且不存在压缩包", galleryTask.getName()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user