fix: closing the game when no module is loaded would crash it

This commit is contained in:
minjaesong
2023-11-09 18:03:54 +09:00
parent 125bacfeb9
commit 6e70ad4212

View File

@@ -916,7 +916,9 @@ public class App implements ApplicationListener {
public void dispose() {
System.out.println("Goodbye !");
audioManagerThread.interrupt();
if (audioManagerThread != null) {
audioManagerThread.interrupt();
}
if (currentScreen != null) {
currentScreen.hide();