Skip to content

Commit

Permalink
machine: fix a regression where ...
Browse files Browse the repository at this point in the history
... `wait_for_poweroff` stopped working after migrating to zbus 4.x
  • Loading branch information
liushuyu committed Mar 25, 2024
1 parent 264b52f commit ae1ae99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fn execute_poweroff(ns_name: &str) -> Result<()> {

fn wait_for_poweroff(proxy: &MachineProxyBlocking) -> Result<()> {
for _ in 0..10 {
if proxy.leader().is_err() {
if proxy.get_uidshift().is_err() {
// machine object no longer exists
return Ok(());
}
Expand Down

0 comments on commit ae1ae99

Please sign in to comment.