Close tun device with device
This commit is contained in:
parent
32d8932d1b
commit
5705a5e2ef
@ -205,6 +205,7 @@ func (device *Device) Close() {
|
||||
device.RemoveAllPeers()
|
||||
close(device.signal.stop)
|
||||
closeUDPConn(device)
|
||||
device.tun.device.Close()
|
||||
}
|
||||
|
||||
func (device *Device) WaitChannel() chan struct{} {
|
||||
|
Loading…
Reference in New Issue
Block a user