Fix max incoming connections limit check
@@ -229,7 +229,7 @@ impl NetworkHandler {
let holder = incoming_connections_counter.clone();
// Check incoming connections count
let connections_count = Rc::strong_count(&incoming_connections_counter) - 1;
- if connections_count > incoming_connections_limit {
+ if connections_count >= incoming_connections_limit {
warn!(
"Rejected incoming connection with peer={}, \
connections limit reached.",
