1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

Delete pending missions with invalid storage

This commit is contained in:
Stypox 2021-07-21 10:52:04 +02:00
parent fd4e1b8d2c
commit a9e21a35ea
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

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