file restore: improve some comment

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-23 08:25:34 +02:00
parent 3f780ddf73
commit 1ea3f23f7e

View File

@ -317,8 +317,7 @@ pub async fn start_vm(
}
return Ok((pid, cid as i32));
}
if kill(pid_t, None).is_err() {
// QEMU exited
if kill(pid_t, None).is_err() { // check if QEMU process exited in between
bail!("VM exited before connection could be established");
}
time::sleep(Duration::from_millis(200)).await;