Skip to content

Commit

Permalink
Merge pull request #6721 from Stypox/pending-mission-crash
Browse files Browse the repository at this point in the history
Delete pending missions with invalid storage
  • Loading branch information
TobiGr authored Jul 22, 2021
2 parents 1f9ad12 + a9e21a3 commit 39722a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private void loadPendingMissions(Context ctx) {
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;
Expand Down

0 comments on commit 39722a5

Please sign in to comment.