fix: not stop waiting for game when terminated
This commit is contained in:
@@ -554,14 +554,14 @@ public final class LauncherHelper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onExit(int exitCode, ExitType exitType) {
|
public void onExit(int exitCode, ExitType exitType) {
|
||||||
|
launchingLatch.countDown();
|
||||||
|
|
||||||
if (exitType == ExitType.INTERRUPTED)
|
if (exitType == ExitType.INTERRUPTED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Game crashed before opening the game window.
|
// Game crashed before opening the game window.
|
||||||
if (!lwjgl) finishLaunch();
|
if (!lwjgl) finishLaunch();
|
||||||
|
|
||||||
launchingLatch.countDown();
|
|
||||||
|
|
||||||
if (exitType != ExitType.NORMAL) {
|
if (exitType != ExitType.NORMAL) {
|
||||||
repository.markVersionLaunchedAbnormally(version);
|
repository.markVersionLaunchedAbnormally(version);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user