From a9e21a35ea633dfe05d9e994db4f02f9a9ff3817 Mon Sep 17 00:00:00 2001 From: Stypox Date: Wed, 21 Jul 2021 10:52:04 +0200 Subject: [PATCH] Delete pending missions with invalid storage --- app/src/main/java/us/shandian/giga/service/DownloadManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/us/shandian/giga/service/DownloadManager.java b/app/src/main/java/us/shandian/giga/service/DownloadManager.java index a2811e72e..7c248c2b6 100644 --- a/app/src/main/java/us/shandian/giga/service/DownloadManager.java +++ b/app/src/main/java/us/shandian/giga/service/DownloadManager.java @@ -149,7 +149,7 @@ public class DownloadManager { if (sub.getName().equals(".tmp")) continue; DownloadMission mis = Utility.readFromFile(sub); - if (mis == null || mis.isFinished()) { + if (mis == null || mis.isFinished() || mis.hasInvalidStorage()) { //noinspection ResultOfMethodCallIgnored sub.delete(); continue;