Remove try catch in launchApplication

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2024-06-20 18:52:53 +07:00
parent 4d99e31281
commit 1945eacc4b
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307
3 changed files with 3 additions and 15 deletions

View File

@ -84,11 +84,7 @@ public class RestApi extends ExecutableForAppWithP2p {
@Override
protected void launchApplication() {
UserThread.execute(() -> {
try {
onApplicationLaunched();
} catch (Exception e) {
e.printStackTrace();
}
onApplicationLaunched();
});
}

View File

@ -78,12 +78,8 @@ public class SeedNodeMain extends ExecutableForAppWithP2p {
@Override
protected void launchApplication() {
UserThread.execute(() -> {
try {
seedNode = new SeedNode();
onApplicationLaunched();
} catch (Exception e) {
e.printStackTrace();
}
seedNode = new SeedNode();
onApplicationLaunched();
});
}

View File

@ -49,12 +49,8 @@ public class StatisticsMain extends ExecutableForAppWithP2p {
@Override
protected void launchApplication() {
UserThread.execute(() -> {
try {
statistics = new Statistics();
UserThread.execute(this::onApplicationLaunched);
} catch (Exception e) {
e.printStackTrace();
}
});
}