diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 02:32:18 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 02:32:18 +0200 |
commit | 1653c57e8167c69c11bf9aade23bdbc5207c196d (patch) | |
tree | 166ac829c50fad8ae283e4098cf0d1589458c0b4 /src/fastd.c | |
parent | 22a6b5706593d222bfc602859dbccd7beb5231ed (diff) | |
download | fastd-1653c57e8167c69c11bf9aade23bdbc5207c196d.tar fastd-1653c57e8167c69c11bf9aade23bdbc5207c196d.zip |
Make peer takeover work
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c index 70f4248..af17c24 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -370,7 +370,7 @@ static void cleanup_peers(fastd_context *ctx) { if (fastd_peer_is_temporary(peer)) { if (timespec_diff(&ctx->now, &peer->seen) > ctx->conf->peer_stale_time_temp*1000) - fastd_peer_delete(ctx, peer); + fastd_peer_reset(ctx, peer); } else if (fastd_peer_is_established(peer)) { if (timespec_diff(&ctx->now, &peer->seen) > ctx->conf->peer_stale_time*1000) |