]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fix missing block_in_place for remove_backup
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 19 Oct 2020 14:45:21 +0000 (16:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 Oct 2020 05:48:51 +0000 (07:48 +0200)
Commit 9070d11f4c26 introduced this change for other call sites,
assuming it is correct, this one was missed.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/api2/backup.rs

index 8b2b0e1a4f89f2320316a15a1dba2dd1a9c33ffc..626c603f0f936d18d8a649f5eee9f0f0b6b787af 100644 (file)
@@ -216,7 +216,7 @@ async move {
                 (Ok(_), Err(err)) => {
                     env.log(format!("backup ended and finish failed: {}", err));
                     env.log("removing unfinished backup");
-                    env.remove_backup()?;
+                    tools::runtime::block_in_place(|| env.remove_backup())?;
                     Err(err)
                 },
                 (Err(err), Err(_)) => {