Fix data races in timers
This commit is contained in:
parent
18f43705ec
commit
acb5481246
4 changed files with 17 additions and 17 deletions
6
peer.go
6
peer.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue