We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6679dd commit 9e1d138Copy full SHA for 9e1d138
1 file changed
credentialsd/src/main.rs
@@ -49,8 +49,9 @@ async fn run() -> Result<(), Box<dyn Error>> {
49
println!(" ✅");
50
51
println!("Waiting for messages...");
52
- loop {
53
- // wait forever, handle D-Bus in the background
54
- std::future::pending::<()>().await;
55
- }
+ tokio::signal::ctrl_c()
+ .await
+ .map_err(|err| format!("Failed to wait for shutdown signals: {err}. Shutting down"))?;
+
56
+ Ok(())
57
}
0 commit comments