From 467d1f15ea8e89190c52c265e7e0f11bd616257b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 31 Oct 2013 00:09:52 +0100 Subject: Don't delay initial handshakes when no peer limit is set --- src/peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer.c b/src/peer.c index 5c30307..a84c116 100644 --- a/src/peer.c +++ b/src/peer.c @@ -59,7 +59,7 @@ static inline void free_socket(fastd_context_t *ctx, fastd_peer_t *peer) { static inline bool has_group_config_constraints(const fastd_peer_group_config_t *group) { for (; group; group = group->parent) { - if (group->max_connections) + if (group->max_connections >= 0) return true; } -- cgit v1.2.3