Use pending instead of timer loop
This commit is contained in:
parent
52c3ea7cd3
commit
1d931ae191
1 changed files with 1 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue