Call init after setting connectionState and connectionStatistics

This commit is contained in:
chimp1984 2021-01-11 22:38:49 -05:00
parent 8ccfd65c49
commit 3f8972bf87
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3

View File

@ -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) {