mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-13 20:46:55 +02:00
tun: windows: close event handle on shutdown
This commit is contained in:
parent
2f101fedec
commit
5ba866a5c8
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ func (tun *NativeTun) Close() error {
|
|||
if tun.wt != nil {
|
||||
_, err = tun.wt.DeleteInterface()
|
||||
}
|
||||
close(tun.events)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue