diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-19 05:28:20 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-19 05:28:20 +0200 |
commit | c4955de2ec0ced35b7a9dd6fee6b2f500dd225c9 (patch) | |
tree | 4824b81adf972f54ba96028962f8b85e96532001 | |
parent | caaba5ea19846aadacde67649f6d8de472dfcbac (diff) | |
download | fastd-c4955de2ec0ced35b7a9dd6fee6b2f500dd225c9.tar fastd-c4955de2ec0ced35b7a9dd6fee6b2f500dd225c9.zip |
Don't re-resolve dynamic-floating peers on key refresh
-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 457a488..80476b7 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -423,7 +423,7 @@ static void handle_tasks(fastd_context *ctx) { while ((task = fastd_task_get(ctx)) != NULL) { switch (task->type) { case TASK_HANDSHAKE: - if (fastd_peer_is_dynamic(task->peer)) + if (fastd_peer_is_dynamic(task->peer) && !(fastd_peer_is_floating(task->peer) && fastd_peer_is_established(task->peer))) fastd_resolve_peer(ctx, task->peer); else send_handshake(ctx, task->peer); |