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 committed 2014-01-01 15:15:09 -06:00
1 parent 0745b176e4
commit 40524a0c76
1 file changed
-10
-10
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());