mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Fix wrong close handler (#270)
This commit is contained in:
parent
d146a5a338
commit
0384c683c7
@ -105,7 +105,7 @@ public class BitsquareApp extends Application {
|
||||
// configure the system tray
|
||||
|
||||
SystemTray systemTray = new SystemTray(primaryStage, this::stop);
|
||||
primaryStage.setOnCloseRequest(e -> systemTray.hideStage());
|
||||
primaryStage.setOnCloseRequest(e -> stop());
|
||||
scene.setOnKeyReleased(keyEvent -> {
|
||||
// For now we exit when closing/quit the app.
|
||||
// Later we will only hide the window (systemTray.hideStage()) and use the exit item in the system tray for
|
||||
|
@ -140,8 +140,8 @@ public class TomP2PNode {
|
||||
|
||||
|
||||
public void shutDown() {
|
||||
if (peerDHT != null && peerDHT.peer() != null)
|
||||
peerDHT.peer().shutdown();
|
||||
if (peerDHT != null)
|
||||
peerDHT.shutdown();
|
||||
}
|
||||
|
||||
public PeerDHT getPeerDHT() {
|
||||
|
Loading…
Reference in New Issue
Block a user