Fix wrong close handler (#270)

This commit is contained in:
Manfred Karrer 2014-11-13 03:09:12 +01:00
parent d146a5a338
commit 0384c683c7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

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