Reduce the hack listener to once a second
This commit is contained in:
parent
a5b3340e5b
commit
b95a4c61a5
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user