Close UAPI socket before exit
This commit is contained in:
parent
d7a49b8b8c
commit
b03a6ab1b1
3 changed files with 29 additions and 7 deletions
|
|
@ -186,6 +186,6 @@ func (device *Device) Close() {
|
|||
close(device.signal.stop)
|
||||
}
|
||||
|
||||
func (device *Device) Wait() {
|
||||
<-device.signal.stop
|
||||
func (device *Device) WaitChannel() chan struct{} {
|
||||
return device.signal.stop
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue