Skip to content

Commit

Permalink
recheck interfaces every 5 min if no dbus event
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez committed Jan 7, 2025
1 parent 181d9f1 commit d9a01e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/startos/src/net/network_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9a01e2

Please sign in to comment.