Remove unneeded UserThread.execute wrappers

In desktop we are on the UI thread.
In Seednode we have an outer UserThread.execute call already
This commit is contained in:
chimp1984 2021-11-10 12:27:50 +01:00
parent faa8bd2ab2
commit 880df30ffc
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3
2 changed files with 4 additions and 4 deletions

View file

@ -73,8 +73,8 @@ public class BisqAppMain extends BisqExecutable {
protected void launchApplication() {
BisqApp.setAppLaunchedHandler(application -> {
BisqAppMain.this.application = (BisqApp) application;
// Map to user thread!
UserThread.execute(this::onApplicationLaunched);
onApplicationLaunched();
});
Application.launch(BisqApp.class);

View file

@ -75,11 +75,11 @@ public class SeedNodeMain extends ExecutableForAppWithP2p {
}
@Override
protected void launchApplication() {
protected void launchApplication() {//todo
UserThread.execute(() -> {
try {
seedNode = new SeedNode();
UserThread.execute(this::onApplicationLaunched);
onApplicationLaunched();
} catch (Exception e) {
e.printStackTrace();
}