]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: use channel close to shut down and drain decryption channel
authorJosh Bleecher Snyder <josh@tailscale.com>
Tue, 12 Jan 2021 01:34:02 +0000 (17:34 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Jan 2021 18:56:54 +0000 (19:56 +0100)
commit48c3b87eb824deb1cb3178a7cdd42276dbc70d2d
treea6308daaf8774d31813bc5a2f859373b812dc610
parent675955de5d0a1bad66cd7e99671b031fbce8f589
device: use channel close to shut down and drain decryption channel

This is similar to commit e1fa1cc5560020e67d33aa7e74674853671cf0a0,
but for the decryption channel.

It is an alternative fix to f9f655567930a4cd78d40fa4ba0d58503335ae6a.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/device.go
device/receive.go