summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-20 04:03:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-20 04:03:11 +0200
commitb95a4c61a5170f1f60d3fcfd666d0421a8bca025 (patch)
tree3617a6ed987ab60a716412e01e32ac6b527ee80b
parenta5b3340e5b0a3623e953c88f9c5c0a31d8987b8d (diff)
Reduce the hack listener to once a second
-rw-r--r--tun_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun_linux.go b/tun_linux.go
index cd928db..2782260 100644
--- a/tun_linux.go
+++ b/tun_linux.go
@@ -65,7 +65,7 @@ func (tun *NativeTun) RoutineHackListener() {
return
}
select {
- case <-time.After(time.Second / 10):
+ case <-time.After(time.Second):
case <-tun.statusListenersShutdown:
return
}