diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-31 18:04:02 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-31 18:04:02 +0200 |
commit | 0c82651c30bf543903ca05df4e5b179201353ee1 (patch) | |
tree | 8c7d7eb1e2f41b500433b14213dc1532d4a79b0f /src/fastd.c | |
parent | 342d63a45a8918e45ddcf6a0b82b2f593f4bde12 (diff) | |
download | fastd-0c82651c30bf543903ca05df4e5b179201353ee1.tar fastd-0c82651c30bf543903ca05df4e5b179201353ee1.zip |
Change how handshakes are triggered
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 3 |
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: |