mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-18 20:58:10 +02:00
Fix data races in timers
This commit is contained in:
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 {
|
||||
|
Reference in New Issue
Block a user