From 1d931ae1914bdd2099f4bb5b7f351820851baacc Mon Sep 17 00:00:00 2001 From: Val Packett Date: Fri, 12 Dec 2025 03:42:33 -0300 Subject: [PATCH] Use pending instead of timer loop --- sidebus-broker/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sidebus-broker/src/main.rs b/sidebus-broker/src/main.rs index d0f46ab..366016e 100644 --- a/sidebus-broker/src/main.rs +++ b/sidebus-broker/src/main.rs @@ -165,9 +165,7 @@ async fn main() -> eyre::Result<()> { error!("org.freedesktop.portal.Desktop already provided"); }; // XXX: no method for "wait until the conn dies"? - loop { - tokio::time::sleep(Duration::from_millis(5000)).await; - } + Ok(std::future::pending::<()>().await) } if let Some(path) = cli.unix_path {