Reduce the hack listener to once a second

This commit is contained in:
Jason A. Donenfeld 2018-05-20 04:03:11 +02:00
parent a5b3340e5b
commit b95a4c61a5

View File

@ -65,7 +65,7 @@ func (tun *NativeTun) RoutineHackListener() {
return return
} }
select { select {
case <-time.After(time.Second / 10): case <-time.After(time.Second):
case <-tun.statusListenersShutdown: case <-tun.statusListenersShutdown:
return return
} }