Skip to content

Commit

Permalink
fix: emit progress 0 if get_backup() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Oct 5, 2024
1 parent aec69a5 commit 9f4a329
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/imex/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
Err(format_err!("Backup reception cancelled"))
})
.await;
if res.is_err() {
context.emit_event(EventType::ImexProgress(0));
}
context.free_ongoing().await;
res?;
}
Expand Down

0 comments on commit 9f4a329

Please sign in to comment.