Skip to content

Commit 4b281bd

Browse files
committed
fix: handle graceful death
I was doing it outside of the branched and realized this is probably wrong. This fixes it
1 parent 6785cbf commit 4b281bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • odorobo-agent/src/state/provisioning/actor

odorobo-agent/src/state/provisioning/actor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ impl Actor for VMActor {
5959
let _ = actor_ref.kill();
6060
} else {
6161
warn!(%vmid, "child process exited outside of actor teardown");
62+
let _ = actor_ref.stop_gracefully().await;
6263
}
63-
let _ = actor_ref.stop_gracefully().await;
6464
}
6565
Err(err) => {
6666
error!(%vmid, ?err, "failed to wait on child process, killing actor");

0 commit comments

Comments
 (0)