summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-31 00:09:52 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-31 00:09:52 +0100
commit467d1f15ea8e89190c52c265e7e0f11bd616257b (patch)
treef7667c2498a2dee88fcf00993fb838352cd7028c /src
parent6f7106a755e8c15ad65a4eebf02fc1d27e7a830b (diff)
downloadfastd-467d1f15ea8e89190c52c265e7e0f11bd616257b.tar
fastd-467d1f15ea8e89190c52c265e7e0f11bd616257b.zip
Don't delay initial handshakes when no peer limit is set
Diffstat (limited to 'src')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
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;
}