From 3f8972bf87edbda7ca6fd2602a65caa76be2f026 Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Mon, 11 Jan 2021 22:38:49 -0500 Subject: [PATCH] Call init after setting connectionState and connectionStatistics --- p2p/src/main/java/bisq/network/p2p/network/Connection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/src/main/java/bisq/network/p2p/network/Connection.java b/p2p/src/main/java/bisq/network/p2p/network/Connection.java index 23f0dc47bf..465d27133c 100644 --- a/p2p/src/main/java/bisq/network/p2p/network/Connection.java +++ b/p2p/src/main/java/bisq/network/p2p/network/Connection.java @@ -182,9 +182,9 @@ public class Connection implements HasCapabilities, Runnable, MessageListener { addMessageListener(messageListener); this.networkProtoResolver = networkProtoResolver; - init(peersNodeAddress); connectionState = new ConnectionState(this); connectionStatistics = new ConnectionStatistics(this, connectionState); + init(peersNodeAddress); } private void init(@Nullable NodeAddress peersNodeAddress) {