diff options
author | icelimetea <fr3shtea@outlook.com> | 2022-05-03 00:25:26 +0100 |
---|---|---|
committer | icelimetea <fr3shtea@outlook.com> | 2022-05-03 00:25:26 +0100 |
commit | eeb5297284494c03f3b8e3927c5ed6cc3ca09a41 (patch) | |
tree | e20d809a3fbb9154a064edd1d20bb2c22a9ae390 /libraries/launcher/org/multimc/applet/LegacyFrame.java | |
parent | 8de63b60b1a9d0ba16f5d45f3198c13637151749 (diff) | |
download | PrismLauncher-eeb5297284494c03f3b8e3927c5ed6cc3ca09a41.tar.gz PrismLauncher-eeb5297284494c03f3b8e3927c5ed6cc3ca09a41.tar.bz2 PrismLauncher-eeb5297284494c03f3b8e3927c5ed6cc3ca09a41.zip |
Use only Java 7 features (in order to deal with #515)
Diffstat (limited to 'libraries/launcher/org/multimc/applet/LegacyFrame.java')
-rw-r--r-- | libraries/launcher/org/multimc/applet/LegacyFrame.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libraries/launcher/org/multimc/applet/LegacyFrame.java b/libraries/launcher/org/multimc/applet/LegacyFrame.java index a5e6c170..d250ce26 100644 --- a/libraries/launcher/org/multimc/applet/LegacyFrame.java +++ b/libraries/launcher/org/multimc/applet/LegacyFrame.java @@ -141,16 +141,19 @@ public final class LegacyFrame extends Frame { @Override public void windowClosing(WindowEvent e) { - new Thread(() -> { - try { - Thread.sleep(30000L); - } catch (InterruptedException localInterruptedException) { - localInterruptedException.printStackTrace(); - } + new Thread(new Runnable() { + @Override + public void run() { + try { + Thread.sleep(30000L); + } catch (InterruptedException localInterruptedException) { + localInterruptedException.printStackTrace(); + } - LOGGER.info("Forcing exit!"); + LOGGER.info("Forcing exit!"); - System.exit(0); + System.exit(0); + } }).start(); if (appletWrap != null) { |