mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-02 22:33:11 +08:00
bugfix
This commit is contained in:
@@ -61,7 +61,7 @@ class DownloadTask extends AsyncTask<DownloadTaskParams, Void, Void> {
|
|||||||
removeDirectory(f);
|
removeDirectory(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!file.delete()) {
|
if (file.exists() && !file.delete()) {
|
||||||
throw new IOException("Failed to delete directory");
|
throw new IOException("Failed to delete directory");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user