mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Fix wrong close handler (#270)
This commit is contained in:
parent
d146a5a338
commit
0384c683c7
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue