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.

This commit is contained in:
Cameron Gutman
2014-01-01 15:15:09 -06:00
parent eb94669abf
commit 101632c967

View File

@@ -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());