diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 19:33:41 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-13 19:34:28 +0200 |
commit | 2326d6a4d75f9f3736046cc526eb593a403d4c7a (patch) | |
tree | da31622899bb84e256b22addd1604b8250582c44 /tun_darwin.go | |
parent | e94185681f4c19874392019b0d43bdfefcbb85b5 (diff) |
Odds and ends
Diffstat (limited to 'tun_darwin.go')
-rw-r--r-- | tun_darwin.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tun_darwin.go b/tun_darwin.go index 1d66c66..fa8efe0 100644 --- a/tun_darwin.go +++ b/tun_darwin.go @@ -224,7 +224,9 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) { } func (tun *NativeTun) Close() error { - return tun.fd.Close() + err := tun.fd.Close() + close(tun.events) + return err } func (tun *NativeTun) setMTU(n int) error { |