Remove wrapping into UserThread.execute at launchApplication as UserThread is not setup yet and would be anyway same executor as caller.

This commit is contained in:
HenrikJannsen 2024-06-20 18:53:43 +07:00
parent 1945eacc4b
commit a65bd02d8f
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307
3 changed files with 5 additions and 13 deletions

View File

@ -83,9 +83,7 @@ public class RestApi extends ExecutableForAppWithP2p {
@Override
protected void launchApplication() {
UserThread.execute(() -> {
onApplicationLaunched();
});
}

View File

@ -77,10 +77,8 @@ public class SeedNodeMain extends ExecutableForAppWithP2p {
@Override
protected void launchApplication() {
UserThread.execute(() -> {
seedNode = new SeedNode();
onApplicationLaunched();
});
}

View File

@ -19,8 +19,6 @@ package bisq.statistics;
import bisq.core.app.misc.ExecutableForAppWithP2p;
import bisq.common.UserThread;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@ -48,10 +46,8 @@ public class StatisticsMain extends ExecutableForAppWithP2p {
@Override
protected void launchApplication() {
UserThread.execute(() -> {
statistics = new Statistics();
UserThread.execute(this::onApplicationLaunched);
});
onApplicationLaunched();
}