mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[FIX] Удаление если прошлая загрузка сорвалась.
This commit is contained in:
parent
d210666df2
commit
c17e59c4d1
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ public static void update(LauncherRequestEvent result) throws IOException {
|
||||||
}*/
|
}*/
|
||||||
try {
|
try {
|
||||||
ListDownloader downloader = new ListDownloader();
|
ListDownloader downloader = new ListDownloader();
|
||||||
|
Files.deleteIfExists(C_BINARY_PATH);
|
||||||
downloader.downloadOne(result.url, C_BINARY_PATH);
|
downloader.downloadOne(result.url, C_BINARY_PATH);
|
||||||
try (InputStream in = IOHelper.newInput(C_BINARY_PATH)) {
|
try (InputStream in = IOHelper.newInput(C_BINARY_PATH)) {
|
||||||
IOHelper.transfer(in, BINARY_PATH);
|
IOHelper.transfer(in, BINARY_PATH);
|
||||||
|
|
Loading…
Reference in a new issue