Ensure go routines can exit
This commit is contained in:
parent
29b0453cf1
commit
659106bd6d
2 changed files with 52 additions and 49 deletions
|
|
@ -293,7 +293,7 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device {
|
|||
|
||||
// prepare signals
|
||||
|
||||
device.signals.stop = make(chan struct{}, 1)
|
||||
device.signals.stop = make(chan struct{}, 0)
|
||||
|
||||
// prepare net
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue