Skip to content

Commit

Permalink
stage2/ml9: fix using wrong method to wait for forked process to term…
Browse files Browse the repository at this point in the history
…inate
  • Loading branch information
Sychic committed Aug 25, 2024
1 parent 2955dfd commit 80bbf26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void waitForClose() {
if (this.jvm == null) return;

try {
this.jvm.process.getInputStream().wait();
} catch (InterruptedException e) {
this.jvm.process.getInputStream().read();
} catch (IOException e) {
LOGGER.warn("Failed to wait for RestartUI to close:", e);
} finally {
this.jvm.close();
Expand Down

0 comments on commit 80bbf26

Please sign in to comment.