udp: network: check less often if periodic tasks need to be done

This commit is contained in:
Joakim Frostegård 2021-11-19 01:20:39 +01:00
parent a530dc2860
commit 029193b512

View file

@ -188,7 +188,7 @@ pub fn run_socket_worker(
);
// Run periodic ValidUntil updates and state cleaning
if iter_counter % 32 == 0 {
if iter_counter % 128 == 0 {
let now = Instant::now();
connection_valid_until =