Wait for the service to start, not to stop (#573)

Signed-off-by: Horacio Mijail Anton Quiles <hmijail@gmail.com>

Co-authored-by: CJ Hare <CjHare@users.noreply.github.com>
pull/609/head
Horacio Mijail Antón Quiles 5 years ago committed by GitHub
parent 1ca76eba4c
commit 4fa78d61a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      besu/src/main/java/org/hyperledger/besu/Runner.java

@ -108,7 +108,7 @@ public class Runner implements AutoCloseable {
besuController.getTransactionPool().getPendingTransactions().evictOldTransactions());
jsonRpc.ifPresent(service -> waitForServiceToStart("jsonRpc", service.start()));
graphQLHttp.ifPresent(service -> waitForServiceToStart("graphQLHttp", service.start()));
websocketRpc.ifPresent(service -> waitForServiceToStop("websocketRpc", service.start()));
websocketRpc.ifPresent(service -> waitForServiceToStart("websocketRpc", service.start()));
metrics.ifPresent(service -> waitForServiceToStart("metrics", service.start()));
LOG.info("Ethereum main loop is up.");
writeBesuPortsToFile();

Loading…
Cancel
Save