We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29b04ad commit 662832eCopy full SHA for 662832e
1 file changed
src/dbus/manager/manager_3_6/methods.rs
@@ -48,9 +48,10 @@ pub async fn stop_pool_method(
48
let action = handle_action!(engine.stop_pool(id, false).await);
49
50
if let Ok(StopAction::Stopped(pool_uuid) | StopAction::Partial(pool_uuid)) = action {
51
- match manager.read().await.pool_get_path(&pool_uuid) {
+ let path = manager.read().await.pool_get_path(&pool_uuid).cloned();
52
+ match path {
53
Some(pool) => {
- if let Err(e) = unregister_pool(connection, manager, pool).await {
54
+ if let Err(e) = unregister_pool(connection, manager, &pool.as_ref()).await {
55
warn!("Failed to remove pool with path {pool} from the D-Bus: {e}");
56
}
57
0 commit comments