mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 15:27:18 +00:00
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:
1 parent
eb94669abf
commit
101632c967
1 file changed
-10
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user