aboutsummaryrefslogtreecommitdiffstats
path: root/device/device_test.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-02-08 10:01:35 -0800
committerJosh Bleecher Snyder <josh@tailscale.com>2021-02-08 10:32:07 -0800
commit15810daa2283e3cfe0c811c3632f053274f31950 (patch)
tree917b946fbd80604c7a2bd0b214db7ecf80ea9786 /device/device_test.go
parentdevice: don't track device interface state in RoutineTUNEventReader (diff)
downloadwireguard-go-15810daa2283e3cfe0c811c3632f053274f31950.tar.xz
wireguard-go-15810daa2283e3cfe0c811c3632f053274f31950.zip
device: separate timersInit from timersStart
timersInit sets up the timers. It need only be done once per peer. timersStart does the work to prepare the timers for a newly running peer. It needs to be done every time a peer starts. Separate the two and call them in the appropriate places. This prevents data races on the peer's timers fields when starting and stopping peers. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/device_test.go')
0 files changed, 0 insertions, 0 deletions