Fix wrong thread call on exite form sys tray

This commit is contained in:
Manfred Karrer 2016-04-23 03:36:55 +02:00
parent b4edbe2986
commit 9f38374539
2 changed files with 6 additions and 2 deletions

View File

@ -128,7 +128,7 @@ public class SystemTray {
e1.printStackTrace();
}
});
exitItem.addActionListener(e -> onExit.run());
exitItem.addActionListener(e -> UserThread.execute(onExit::run));
}
public void hideStage() {

View File

@ -5,6 +5,7 @@ import io.bitsquare.app.Log;
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;
@ -118,8 +119,11 @@ public class SeedNode {
"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()) {