From d9a01e20338c527927e45fd80181b2a26ed393c4 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 7 Jan 2025 14:15:49 -0700 Subject: [PATCH] recheck interfaces every 5 min if no dbus event --- core/startos/src/net/network_interface.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/startos/src/net/network_interface.rs b/core/startos/src/net/network_interface.rs index ad8f7de4f..d39a9861a 100644 --- a/core/startos/src/net/network_interface.rs +++ b/core/startos/src/net/network_interface.rs @@ -436,7 +436,14 @@ async fn watch_ip( .stub(), ) .with_stream(device_proxy.receive_ip4_config_changed().await.stub()) - .with_stream(device_proxy.receive_ip6_config_changed().await.stub()); + .with_stream(device_proxy.receive_ip6_config_changed().await.stub()) + .with_async_fn(|| { + async { + tokio::time::sleep(Duration::from_secs(300)).await; + Ok(()) + } + .fuse() + }); loop { until