mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-11-12 17:44:27 +00:00
Merge pull request #6721 from Stypox/pending-mission-crash
Delete pending missions with invalid storage
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user