From d015ab05aa54831d7886e21281bb5a555fa6bfa3 Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Wed, 26 Sep 2018 16:34:44 +0300 Subject: [PATCH] Small fix. --- .../src/main/java/ru/gravit/utils/downloader/Downloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libLauncher/src/main/java/ru/gravit/utils/downloader/Downloader.java b/libLauncher/src/main/java/ru/gravit/utils/downloader/Downloader.java index ace2e765..8f4d91a9 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/downloader/Downloader.java +++ b/libLauncher/src/main/java/ru/gravit/utils/downloader/Downloader.java @@ -43,7 +43,7 @@ public File getFile() { public void downloadFile() throws IOException { try (BufferedInputStream in = new BufferedInputStream(url.openStream()); FileOutputStream fout = new FileOutputStream(file, skip != 0)) { final byte data[] = new byte[IOHelper.BUFFER_SIZE]; - int count; + int count = -1; long timestamp = System.currentTimeMillis(); int writed_local = 0; in.skip(skip);