From e923ddda65821bc13b74b6c9ab67613734436dd1 Mon Sep 17 00:00:00 2001 From: Adrian Sutton Date: Mon, 4 Mar 2019 15:05:01 +1000 Subject: [PATCH] Fix race condition in WebSocketService. (#1021) Signed-off-by: Adrian Sutton --- .../pantheon/ethereum/jsonrpc/websocket/WebSocketService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/websocket/WebSocketService.java b/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/websocket/WebSocketService.java index 8ebf1cb66a..984aceeefe 100644 --- a/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/websocket/WebSocketService.java +++ b/ethereum/jsonrpc/src/main/java/tech/pegasys/pantheon/ethereum/jsonrpc/websocket/WebSocketService.java @@ -181,7 +181,7 @@ public class WebSocketService { LOG.info( "Websocket service started and listening on {}:{}", configuration.getHost(), - httpServer.actualPort()); + res.result().actualPort()); resultFuture.complete(null); } else {