mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +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 {
|
||||
ListDownloader downloader = new ListDownloader();
|
||||
Files.deleteIfExists(C_BINARY_PATH);
|
||||
downloader.downloadOne(result.url, C_BINARY_PATH);
|
||||
try (InputStream in = IOHelper.newInput(C_BINARY_PATH)) {
|
||||
IOHelper.transfer(in, BINARY_PATH);
|
||||
|
|
Loading…
Reference in a new issue