diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-10 15:20:39 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-10 15:20:39 +0100 |
commit | 6ef24092b52b717242f52b18a2f1ee9d44ed2f4e (patch) | |
tree | 897ca4e056ccc10859a82f71beaa85f01d952668 /src/fastd.c | |
parent | 13c71785b58fe542ca95eeed11dabf99f1be71fa (diff) | |
download | fastd-6ef24092b52b717242f52b18a2f1ee9d44ed2f4e.tar fastd-6ef24092b52b717242f52b18a2f1ee9d44ed2f4e.zip |
Keep track of configured peer count correctly on dynamic reloads
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
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++; - } } } |