Skip to content

Commit

Permalink
Update 3 ChannelManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
leonchuk authored Jul 5, 2024
1 parent d0bd97a commit 3ccaa14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/tron/p2p/connection/ChannelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static synchronized DisconnectCode processPeer(Channel channel) {

if (!channel.isActive() && !channel.isTrustPeer()) {

if(!Parameter.p2pConfig.isDiscoverEnable() && channels.size()){
if(!Parameter.p2pConfig.isDiscoverEnable() && channels.size() > 0){
log.info("Discover off, disconnected with {}", channel);
return DisconnectCode.TOO_MANY_PEERS;
}
Expand Down

0 comments on commit 3ccaa14

Please sign in to comment.