summaryrefslogtreecommitdiffhomepage
path: root/tun/tun_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-22 09:37:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-22 09:37:20 +0200
commit5ba866a5c8dfedb2efd54ae371090b9a05cedd1a (patch)
tree515fa141a11a449f45f0907b78a7d47e6ff1a9fa /tun/tun_windows.go
parent2f101fedec51ac87e53fc9c00720f0069893b9ee (diff)
tun: windows: close event handle on shutdown
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r--tun/tun_windows.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 6a84394..01c5644 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -171,6 +171,7 @@ func (tun *NativeTun) Close() error {
if tun.wt != nil {
_, err = tun.wt.DeleteInterface()
}
+ close(tun.events)
return err
}