summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 535c772..a651946 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -213,8 +213,7 @@ static void handle_tasks(fastd_context *ctx) {
pr_debug(ctx, "Sending handshake to %P...", task->peer);
ctx->conf->protocol->handshake_init(ctx, task->peer);
- if (task->peer->state == STATE_WAIT)
- fastd_task_schedule_handshake(ctx, task->peer, 20000);
+ fastd_task_schedule_handshake(ctx, task->peer, 20000);
break;
default: