We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0bd97a commit 3ccaa14Copy full SHA for 3ccaa14
1 file changed
src/main/java/org/tron/p2p/connection/ChannelManager.java
@@ -112,7 +112,7 @@ public static synchronized DisconnectCode processPeer(Channel channel) {
112
113
if (!channel.isActive() && !channel.isTrustPeer()) {
114
115
- if(!Parameter.p2pConfig.isDiscoverEnable() && channels.size()){
+ if(!Parameter.p2pConfig.isDiscoverEnable() && channels.size() > 0){
116
log.info("Discover off, disconnected with {}", channel);
117
return DisconnectCode.TOO_MANY_PEERS;
118
}
0 commit comments