Close UAPI socket before exit

This commit is contained in:
Mathias Hall-Andersen
2017-08-01 12:14:38 +02:00
parent d7a49b8b8c
commit b03a6ab1b1
3 changed files with 29 additions and 7 deletions

View File

@@ -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
}