summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-28 02:32:18 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-28 02:32:18 +0200
commit1653c57e8167c69c11bf9aade23bdbc5207c196d (patch)
tree166ac829c50fad8ae283e4098cf0d1589458c0b4 /src/fastd.c
parent22a6b5706593d222bfc602859dbccd7beb5231ed (diff)
downloadfastd-1653c57e8167c69c11bf9aade23bdbc5207c196d.tar
fastd-1653c57e8167c69c11bf9aade23bdbc5207c196d.zip
Make peer takeover work
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c2
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)