Use pending instead of timer loop

This commit is contained in:
Val Packett 2025-12-12 03:42:33 -03:00
parent 52c3ea7cd3
commit 1d931ae191

View file

@ -165,9 +165,7 @@ async fn main() -> eyre::Result<()> {
error!("org.freedesktop.portal.Desktop already provided"); error!("org.freedesktop.portal.Desktop already provided");
}; };
// XXX: no method for "wait until the conn dies"? // XXX: no method for "wait until the conn dies"?
loop { Ok(std::future::pending::<()>().await)
tokio::time::sleep(Duration::from_millis(5000)).await;
}
} }
if let Some(path) = cli.unix_path { if let Some(path) = cli.unix_path {