bugfix
This commit is contained in:
parent
c05d742864
commit
f9dd87f6c0
@ -61,7 +61,7 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
|
||||
removeDirectory(f);
|
||||
}
|
||||
}
|
||||
if (!file.delete()) {
|
||||
if (file.exists() && !file.delete()) {
|
||||
throw new IOException("Failed to delete directory");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user