chore(rp): Make sure genetlink is cleaned up

This commit is contained in:
Karolin Varner
2025-08-02 17:31:18 +02:00
parent 1d4a70f863
commit f0ee7a33c9

View File

@@ -393,7 +393,10 @@ pub async fn exchange(options: ExchangeOptions) -> Result<()> {
// Deploy the classic wireguard private key.
let (connection, mut genetlink, _) = genetlink::new_connection()?;
tokio::spawn(connection);
try_spawn_daemon(async move {
connection.await;
Ok(())
})?;
let wgsk_path = options.private_keys_dir.join("wgsk");