diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 06:50:07 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-20 06:50:07 +0200 |
commit | acb5481246ea97bff64cc3eba1fa4255fc1ccd72 (patch) | |
tree | cab32a55aac483eb25e5a8c944d14e10f4610cd3 /peer.go | |
parent | 18f43705ecbc8751bcf5ed05cd65cf93c36798b0 (diff) |
Fix data races in timers
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -40,9 +40,9 @@ type Peer struct { newHandshake *Timer zeroKeyMaterial *Timer persistentKeepalive *Timer - handshakeAttempts uint - needAnotherKeepalive bool - sentLastMinuteHandshake bool + handshakeAttempts uint32 + needAnotherKeepalive AtomicBool + sentLastMinuteHandshake AtomicBool } signals struct { |