diff --git a/LauncherAPI/src/main/java/ru/gravit/launcher/request/update/UpdateRequest.java b/LauncherAPI/src/main/java/ru/gravit/launcher/request/update/UpdateRequest.java index 80352243..96c01bc4 100644 --- a/LauncherAPI/src/main/java/ru/gravit/launcher/request/update/UpdateRequest.java +++ b/LauncherAPI/src/main/java/ru/gravit/launcher/request/update/UpdateRequest.java @@ -303,9 +303,16 @@ public Integer getLegacyType() { } @Override - protected UpdateRequestEvent requestDo(HInput input, HOutput output) throws IOException, SignatureException { + public UpdateRequestEvent request() throws Exception { Files.createDirectories(dir); localDir = new HashedDir(dir, matcher, false, digest); + + // Start request + return super.request(); + } + + @Override + protected UpdateRequestEvent requestDo(HInput input, HOutput output) throws IOException, SignatureException { // Write update dir name output.writeString(dirName, 255); output.flush();