diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-01 12:14:38 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-01 12:15:20 +0200 |
commit | b03a6ab1b1ef422d832a5451312ecae1363fa171 (patch) | |
tree | f40c86a1d23a8efc823df28035445888b0e05a49 /src/device.go | |
parent | d7a49b8b8c43d92fd601d32b2f5130d2dabbc748 (diff) | |
download | wireguard-go-b03a6ab1b1ef422d832a5451312ecae1363fa171.tar.gz wireguard-go-b03a6ab1b1ef422d832a5451312ecae1363fa171.zip |
Close UAPI socket before exit
Diffstat (limited to '')
-rw-r--r-- | src/device.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device.go b/src/device.go index d32d648..1185d60 100644 --- a/src/device.go +++ b/src/device.go @@ -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 } |