Skip to content

Commit

Permalink
Fix wrong thread call on exite form sys tray
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Apr 23, 2016
1 parent b4edbe2 commit 9f38374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/src/main/java/io/bitsquare/gui/SystemTray.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ else if (Utilities.isWindows())
e1.printStackTrace();
}
});
exitItem.addActionListener(e -> onExit.run());
exitItem.addActionListener(e -> UserThread.execute(onExit::run));
}

public void hideStage() {
Expand Down
6 changes: 5 additions & 1 deletion network/src/main/java/io/bitsquare/p2p/seed/SeedNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io.bitsquare.app.Version;
import io.bitsquare.common.Clock;
import io.bitsquare.common.UserThread;
import io.bitsquare.common.util.Utilities;
import io.bitsquare.p2p.NodeAddress;
import io.bitsquare.p2p.P2PService;
import io.bitsquare.p2p.P2PServiceListener;
Expand Down Expand Up @@ -118,8 +119,11 @@ public void createAndStartP2PService(NodeAddress mySeedNodeAddress,
"Bitsquare_seed_node_" + String.valueOf(mySeedNodeAddress.getFullAddress().replace(":", "_")));

String logPath = Paths.get(appPath.toString(), "logs").toString();
Log.setup(logPath, useDetailedLogging);
Log.setup(logPath);
log.info("Log files under: " + logPath);
Version.printVersion();
Utilities.printSysInfo();
Log.setLevel(useDetailedLogging);

SeedNodesRepository seedNodesRepository = new SeedNodesRepository();
if (progArgSeedNodes != null && !progArgSeedNodes.isEmpty()) {
Expand Down

0 comments on commit 9f38374

Please sign in to comment.