From: Jason A. Donenfeld Date: Mon, 22 Jul 2019 07:37:20 +0000 (+0200) Subject: tun: windows: close event handle on shutdown X-Git-Tag: 0.0.20190805~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ba866a5c8dfedb2efd54ae371090b9a05cedd1a;p=thirdparty%2Fwireguard-go.git tun: windows: close event handle on shutdown --- 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 }