summaryrefslogtreecommitdiffhomepage
path: root/tun_linux.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 /tun_linux.go
parentb76ab82539ddaceefdb095a0959e52a66075fc0e (diff)
Shorthand for empty channels
Diffstat (limited to 'tun_linux.go')
-rw-r--r--tun_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun_linux.go b/tun_linux.go
index a243a03..18fb72c 100644
--- a/tun_linux.go
+++ b/tun_linux.go
@@ -399,7 +399,7 @@ func CreateTUNFromFile(fd *os.File) (TUNDevice, error) {
fd: fd,
events: make(chan TUNEvent, 5),
errors: make(chan error, 5),
- statusListenersShutdown: make(chan struct{}, 0),
+ statusListenersShutdown: make(chan struct{}),
nopi: false,
}
var err error