summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-06-14 14:05:29 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-06-14 14:05:29 +0200
commite30ecc7387594f51224423595f5abcde24e35949 (patch)
treef6b3f34feab06fbdaef4adf9e8fc1803789a3205 /src
parent223066fe2495b85e958d992108f59047c0cc4928 (diff)
downloadfastd-e30ecc7387594f51224423595f5abcde24e35949.tar
fastd-e30ecc7387594f51224423595f5abcde24e35949.zip
peer: remove always-true condition
Diffstat (limited to 'src')
-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);
}