mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-02-17 17:09:55 +08:00
Fix NullPointerException when launcher launched two game at the same time
This commit is contained in:
parent
494b27cc22
commit
4e9fc57aa4
@ -87,6 +87,8 @@ public final class Main extends Application {
|
||||
|
||||
public static void stopWithoutPlatform() {
|
||||
JFXUtilities.runInFX(() -> {
|
||||
if (Controllers.getStage() == null)
|
||||
return;
|
||||
Controllers.getStage().close();
|
||||
|
||||
Logging.LOG.info("Shutting down executor services.");
|
||||
|
Loading…
Reference in New Issue
Block a user