Pressing play in launcher, and quickly closing it leaves java process hanging and throws an exception
1. Press Play
2. Quickly close launcher
3. Get exception
Linked Issues
Created Issue:
Pressing play in launcher, and quickly closing it leaves java process hanging and throws an exception
1. Press Play
2. Quickly close launcher
3. Get exception
Moved Issue:
MC-14631 →
MCL-111
Added Security Level: Minecraft Launcher - Public
Added Affects Versions: 0.5
Removed Affects Versions: 13w17a
Deleted Comment:
I'm not sure exactly about the relationship between the launcher and the game but if applicable you can try killing the game from within a Runtime shutdown hook from the launcher.
Again, I know nothing about what happens between the launcher and the game, but supposing the game is in a thread inside the launcher you can do something like this:
LauncherMain.javaRuntime.getRuntime().addShutdownHook(new Thread(new Runnable() { try { gameThread.join(); } catch(Exception e) { //Joining the game thread fail } }
Added Linked Issues:
is duplicated by

Is this still happening?
It's not throwing an exception anymore, but it leaves the process and launches Minecraft regardless.
That might be something we can improve upon. Thanks.
We need to check for a 'closed' state before we actually decide to launch mc.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
It's not throwing an exception anymore, but it still launches minecraft (after closing the launcher).