Skip to content

Commit

Permalink
Log an error when the D-Bus tree cannot be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Dec 29, 2023
1 parent 1c9ec66 commit c40e251
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/agama-dbus-server/src/network/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ impl<T: Adapter> NetworkSystem<T> {
let tree = Arc::clone(&self.tree);
tokio::spawn(async move {
let mut tree = tree.lock().await;
_ = tree.set_connections(&mut connections).await;
if let Err(e) = tree.set_connections(&mut connections).await {
log::error!("Could not update the D-Bus tree: {}", e);
}
});
}
}
Expand Down

0 comments on commit c40e251

Please sign in to comment.