mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
fix: emit progress 0 if get_backup() fails
This commit is contained in:
@@ -353,6 +353,9 @@ pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
|||||||
Err(format_err!("Backup reception cancelled"))
|
Err(format_err!("Backup reception cancelled"))
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
|
if res.is_err() {
|
||||||
|
context.emit_event(EventType::ImexProgress(0));
|
||||||
|
}
|
||||||
context.free_ongoing().await;
|
context.free_ongoing().await;
|
||||||
res?;
|
res?;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user