Skip to content

Commit 41efa64

Browse files
committed
close TTRUpdater properly in some cases
1 parent d67d70e commit 41efa64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/lol/hyper/customlauncher/ttrupdater/TTRUpdater.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public TTRUpdater(String title, Path installLocation) {
107107
JSONObject patches = JSONManager.requestJSON(PATCHES_URL);
108108
if (patches == null) {
109109
logger.error("patchesmanifest.txt returned null!");
110+
frame.dispose();
110111
return;
111112
}
112113
ArrayList<String> filesToDownload = new ArrayList<>();
@@ -134,6 +135,7 @@ public TTRUpdater(String title, Path installLocation) {
134135
"We are unable to detect your operating system. Please report this to the GitHub!",
135136
null);
136137
errorWindow.dispose();
138+
frame.dispose();
137139
return;
138140
}
139141

0 commit comments

Comments
 (0)