aboutsummaryrefslogtreecommitdiffstats
path: root/device/pools.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2020-12-15 15:54:48 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-07 14:49:44 +0100
commit2832e96339b4b847172741e9252020fc7bfa59af (patch)
tree782633f9de39040f88930c905bca6d803a870f9e /device/pools.go
parentdevice: fix persistent_keepalive_interval data races (diff)
downloadwireguard-go-2832e96339b4b847172741e9252020fc7bfa59af.tar.xz
wireguard-go-2832e96339b4b847172741e9252020fc7bfa59af.zip
device: use channel close to shut down and drain outbound channel
This is a similar treatment to the handling of the encryption channel found a few commits ago: Use the closing of the channel to manage goroutine lifetime and shutdown. It is considerably simpler because there is only a single writer. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions