diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-31 00:09:52 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-10-31 00:09:52 +0100 |
commit | 467d1f15ea8e89190c52c265e7e0f11bd616257b (patch) | |
tree | f7667c2498a2dee88fcf00993fb838352cd7028c /src | |
parent | 6f7106a755e8c15ad65a4eebf02fc1d27e7a830b (diff) | |
download | fastd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |