From 3a87d747a015b2ff2150ed163ad56b1bc677e6b0 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 Apr 2012 05:34:24 +0200 Subject: Use handshake splay time for unestablished peers as well --- src/fastd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fastd.c b/src/fastd.c index 695edaa..59e5c54 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -370,10 +370,7 @@ static void send_handshake(fastd_context *ctx, fastd_peer *peer) { pr_debug(ctx, "sending handshake to %P...", peer); ctx->conf->protocol->handshake_init(ctx, peer); - if (fastd_peer_is_established(peer)) - fastd_task_schedule_handshake(ctx, peer, fastd_rand(ctx, 10000, 20000)); - else - fastd_task_schedule_handshake(ctx, peer, 20000); + fastd_task_schedule_handshake(ctx, peer, fastd_rand(ctx, 17500, 22500)); } static void handle_tasks(fastd_context *ctx) { -- cgit v1.2.3