From 455f2ad22887186ae20b2807495ee99e8d0c1653 Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Mon, 19 Oct 2020 16:45:21 +0200 Subject: [PATCH] fix missing block_in_place for remove_backup Commit 9070d11f4c26 introduced this change for other call sites, assuming it is correct, this one was missed. Signed-off-by: Stefan Reiter --- src/api2/backup.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/backup.rs b/src/api2/backup.rs index 8b2b0e1a..626c603f 100644 --- a/src/api2/backup.rs +++ b/src/api2/backup.rs @@ -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(_)) => {