summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/peer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peer.c b/src/peer.c
index fc675a9..9bec0f0 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -342,8 +342,7 @@ static void init_handshake(fastd_peer_t *peer) {
if (has_group_config_constraints(fastd_peer_get_group(peer)))
delay = fastd_rand(0, 3000);
- if (!fastd_peer_is_established(peer))
- peer->state = STATE_HANDSHAKE;
+ peer->state = STATE_HANDSHAKE;
fastd_peer_schedule_handshake(peer, delay);
}