mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-25 08:38:14 +03:00
Fix wireguard events
This commit is contained in:
@@ -105,11 +105,5 @@ func (w *SystemDevice) Events() chan wgTun.Event {
|
||||
}
|
||||
|
||||
func (w *SystemDevice) Close() error {
|
||||
select {
|
||||
case <-w.events:
|
||||
return os.ErrClosed
|
||||
default:
|
||||
close(w.events)
|
||||
}
|
||||
return w.device.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user