summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fastd.c b/src/fastd.c
index eece815..392b6c4 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -598,10 +598,8 @@ static void init_peers(fastd_context *ctx) {
for (peer_conf = ctx->conf->peers; peer_conf; peer_conf = peer_conf->next) {
ctx->conf->protocol->peer_configure(ctx, peer_conf);
- if (peer_conf->enabled) {
+ if (peer_conf->enabled)
fastd_peer_add(ctx, peer_conf);
- ctx->n_peers++;
- }
}
}