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);