We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1396c0 commit 0da1c74Copy full SHA for 0da1c74
HMCLCore/src/main/java/org/jackhuang/hmcl/download/cleanroom/CleanroomInstallTask.java
@@ -28,6 +28,7 @@
28
import org.jackhuang.hmcl.task.Task;
29
import org.jackhuang.hmcl.util.gson.JsonUtils;
30
import org.jackhuang.hmcl.util.io.CompressingUtils;
31
+import org.jetbrains.annotations.Nullable;
32
33
import java.io.IOException;
34
import java.nio.file.FileSystem;
@@ -92,7 +93,10 @@ public boolean doPostExecute() {
92
93
94
@Override
95
public void postExecute() throws Exception {
- Files.deleteIfExists(installer);
96
+ if (remote != null) {
97
+ Files.deleteIfExists(installer);
98
+ }
99
+
100
setResult(task.getResult());
101
}
102
0 commit comments