mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
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:
parent
1945eacc4b
commit
a65bd02d8f
@ -83,9 +83,7 @@ public class RestApi extends ExecutableForAppWithP2p {
|
||||
|
||||
@Override
|
||||
protected void launchApplication() {
|
||||
UserThread.execute(() -> {
|
||||
onApplicationLaunched();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -77,10 +77,8 @@ public class SeedNodeMain extends ExecutableForAppWithP2p {
|
||||
|
||||
@Override
|
||||
protected void launchApplication() {
|
||||
UserThread.execute(() -> {
|
||||
seedNode = new SeedNode();
|
||||
onApplicationLaunched();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user