Try to fix concurrentModificationException

This commit is contained in:
huangyuhui
2017-03-10 19:38:51 +08:00
parent 0f390e63d3
commit fd2a5a07a1
5 changed files with 43 additions and 9 deletions

View File

@@ -82,6 +82,7 @@ public class LaunchingUIDaemon {
HMCLApi.EVENT_BUS.channel(JavaProcessStoppedEvent.class).register(event -> checkExit((LauncherVisibility) ((ProcessMonitor) event.getSource()).getTag()));
HMCLApi.EVENT_BUS.channel(JavaProcessExitedAbnormallyEvent.class).register(event -> {
int exitCode = event.getValue().getExitCode();
event.getValue().waitForCommandLineCompletion();
HMCLog.err("The game exited abnormally, exit code: " + exitCode);
String[] logs = event.getValue().getStdOutLines().toArray(new String[0]);
String errorText = null;