tun: windows: close event handle on shutdown

This commit is contained in:
Jason A. Donenfeld 2019-07-22 09:37:20 +02:00
parent 2f101fedec
commit 5ba866a5c8

View file

@ -171,6 +171,7 @@ func (tun *NativeTun) Close() error {
if tun.wt != nil {
_, err = tun.wt.DeleteInterface()
}
close(tun.events)
return err
}