]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
Reduce the hack listener to once a second
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 20 May 2018 02:03:11 +0000 (04:03 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 20 May 2018 02:03:11 +0000 (04:03 +0200)
tun_linux.go

index cd928dbddbb312439d4dfa04332a59405238098c..27822608beaefcf99436f7ede121fffa26bea057 100644 (file)
@@ -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
                }