diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-06-14 14:05:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-06-14 14:05:29 +0200 |
commit | e30ecc7387594f51224423595f5abcde24e35949 (patch) | |
tree | f6b3f34feab06fbdaef4adf9e8fc1803789a3205 /src | |
parent | 223066fe2495b85e958d992108f59047c0cc4928 (diff) | |
download | fastd-e30ecc7387594f51224423595f5abcde24e35949.tar fastd-e30ecc7387594f51224423595f5abcde24e35949.zip |
peer: remove always-true condition
Diffstat (limited to 'src')
-rw-r--r-- | src/peer.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } |