Files
wireguard-go/device/peer.go
Josh Bleecher Snyder 26b0dca4f5 device: fix data race in peer.timersActive
Found by the race detector and existing tests.

To avoid introducing a lock into this hot path,
calculate and cache whether any peers exist.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-12-16 16:16:26 -08:00

6.9 KiB