mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-02-02 20:29:15 +00:00
Merge pull request #6721 from Stypox/pending-mission-crash
Delete pending missions with invalid storage
This commit is contained in:
commit
39722a5563
@ -149,7 +149,7 @@ public class DownloadManager {
|
|||||||
if (sub.getName().equals(".tmp")) continue;
|
if (sub.getName().equals(".tmp")) continue;
|
||||||
|
|
||||||
DownloadMission mis = Utility.readFromFile(sub);
|
DownloadMission mis = Utility.readFromFile(sub);
|
||||||
if (mis == null || mis.isFinished()) {
|
if (mis == null || mis.isFinished() || mis.hasInvalidStorage()) {
|
||||||
//noinspection ResultOfMethodCallIgnored
|
//noinspection ResultOfMethodCallIgnored
|
||||||
sub.delete();
|
sub.delete();
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user