mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-26 01:03:08 +01:00
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 New Issue
Block a user