summaryrefslogtreecommitdiffhomepage
path: root/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 02:14:33 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-14 02:14:33 +0200
commit659106bd6d7a6f40310e5704812c6c9fbb96f06c (patch)
treebd3021b67bde6c562576654144ab1a8db7217bc2 /device.go
parent29b0453cf15913b321ea423b7f81fdee55eb4409 (diff)
Ensure go routines can exit
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 cc12ac9..08a6471 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{}, 1)
+ device.signals.stop = make(chan struct{}, 0)
// prepare net