Use only Java 7 features (in order to deal with #515)

This commit is contained in:
icelimetea
2022-05-03 00:25:26 +01:00
parent 8de63b60b1
commit eeb5297284
4 changed files with 39 additions and 20 deletions

View File

@ -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!");
System.exit(0);
}
LOGGER.info("Forcing exit!");
System.exit(0);
}).start();
if (appletWrap != null) {