Suppress InterruptedException

This commit is contained in:
huangyuhui
2018-08-17 21:51:12 +08:00
parent bfe5802d02
commit 089ae1e313

View File

@@ -388,10 +388,13 @@ public final class LauncherHelper {
logs.removeFirst(); logs.removeFirst();
if (setting.isShowLogs()) { if (setting.isShowLogs()) {
Lang.invoke(() -> { try {
latch.await(); latch.await();
logWindow.waitForLoaded(); logWindow.waitForLoaded();
}); } catch (InterruptedException e) {
Thread.currentThread().interrupt();
return;
}
Platform.runLater(() -> logWindow.logLine(log, level)); Platform.runLater(() -> logWindow.logLine(log, level));
} }