From 101632c967ad663a99bf5c14d48d43bcc0da9fa4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 1 Jan 2014 15:15:09 -0600 Subject: [PATCH] Remove the native gamepad cleanup on application close. We don't want native code in the critical closing path because it could mean that the program can't be closed if someone chooses the wrong platform JAR. --- src/com/limelight/gui/MainFrame.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/com/limelight/gui/MainFrame.java b/src/com/limelight/gui/MainFrame.java index 61896ba..d59081b 100644 --- a/src/com/limelight/gui/MainFrame.java +++ b/src/com/limelight/gui/MainFrame.java @@ -59,16 +59,6 @@ public class MainFrame { public void build() { limeFrame = new JFrame("Limelight"); limeFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - limeFrame.addWindowListener(new WindowAdapter() { - @Override - public void windowClosing(WindowEvent e) { - super.windowClosing(e); - if (NativeGamepad.isRunning()) { - NativeGamepad.stop(); - } - - } - }); Container mainPane = limeFrame.getContentPane(); mainPane.setLayout(new BorderLayout());