mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-20 13:54:32 +01:00
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:
parent
faa8bd2ab2
commit
880df30ffc
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue