tun: windows: close event handle on shutdown
This commit is contained in:
parent
2f101fedec
commit
5ba866a5c8
|
@ -171,6 +171,7 @@ func (tun *NativeTun) Close() error {
|
|||
if tun.wt != nil {
|
||||
_, err = tun.wt.DeleteInterface()
|
||||
}
|
||||
close(tun.events)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue