From 029193b512924c4c10e2d4585df2d811d0a5e942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Fri, 19 Nov 2021 01:20:39 +0100 Subject: [PATCH] udp: network: check less often if periodic tasks need to be done --- aquatic_udp/src/lib/network.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aquatic_udp/src/lib/network.rs b/aquatic_udp/src/lib/network.rs index c38c311..566ba40 100644 --- a/aquatic_udp/src/lib/network.rs +++ b/aquatic_udp/src/lib/network.rs @@ -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 =