]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
tun: darwin: do not attempt to close tun.event twice
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 2 Aug 2019 10:24:00 +0000 (12:24 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 2 Aug 2019 10:24:17 +0000 (12:24 +0200)
commit6d78f895579b114c93bd493ad8d61316fc5dd15a
treea254a5ac7c1b61fd58266e8733d6a36525686a9e
parenta2249449d60f69c1878612e2c2c0b9b37b10ce1b
tun: darwin: do not attempt to close tun.event twice

Previously it was possible for this to race. It turns out we really
don't need to set anything to -1 anyway.
tun/tun_darwin.go