From 63066ce4062a85224821ce302e3eb8c34e95a658 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 14 Dec 2020 15:28:52 -0800 Subject: device: fix persistent_keepalive_interval data races Co-authored-by: David Anderson Signed-off-by: Josh Bleecher Snyder --- device/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device/peer.go') diff --git a/device/peer.go b/device/peer.go index c2397cc..31b75c7 100644 --- a/device/peer.go +++ b/device/peer.go @@ -27,7 +27,7 @@ type Peer struct { handshake Handshake device *Device endpoint conn.Endpoint - persistentKeepaliveInterval uint16 + persistentKeepaliveInterval uint32 // accessed atomically disableRoaming bool // These fields are accessed with atomic operations, which must be -- cgit v1.2.3