Skip to content

Commit

Permalink
Call init after setting connectionState and connectionStatistics
Browse files Browse the repository at this point in the history
  • Loading branch information
chimp1984 committed Jan 12, 2021
1 parent 8ccfd65 commit 3f8972b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/src/main/java/bisq/network/p2p/network/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ public static int getPermittedMessageSize() {
addMessageListener(messageListener);

this.networkProtoResolver = networkProtoResolver;
init(peersNodeAddress);
connectionState = new ConnectionState(this);
connectionStatistics = new ConnectionStatistics(this, connectionState);
init(peersNodeAddress);
}

private void init(@Nullable NodeAddress peersNodeAddress) {
Expand Down

0 comments on commit 3f8972b

Please sign in to comment.