aboutsummaryrefslogtreecommitdiffstats
path: root/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 04:19:25 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 04:19:25 +0200
commit25df2e6942b6fc2066d76b672956cb480affad11 (patch)
tree47a92d8c02ce0f8e6b394a8dce007e65b52fd3bd /device.go
parentAllow go routine to shutdown in darwin tun (diff)
downloadwireguard-go-25df2e6942b6fc2066d76b672956cb480affad11.tar.xz
wireguard-go-25df2e6942b6fc2066d76b672956cb480affad11.zip
Shorthand for empty channels
Diffstat (limited to 'device.go')
-rw-r--r--device.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device.go b/device.go
index 08a6471..835a755 100644
--- a/device.go
+++ b/device.go
@@ -293,7 +293,7 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device {
// prepare signals
- device.signals.stop = make(chan struct{}, 0)
+ device.signals.stop = make(chan struct{})
// prepare net