We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 034cde9 commit 6325d80Copy full SHA for 6325d80
deltachat-jsonrpc/src/api/mod.rs
@@ -1361,17 +1361,14 @@ impl CommandApi {
1361
/// Returns once a remote device has retrieved the backup.
1362
async fn provide_backup(&self, account_id: u32) -> Result<()> {
1363
let ctx = self.get_context(account_id).await?;
1364
- ctx.stop_io().await;
1365
let provider = match imex::BackupProvider::prepare(&ctx).await {
1366
Ok(provider) => provider,
1367
Err(err) => {
1368
ctx.start_io().await;
1369
return Err(err);
1370
}
1371
};
1372
- let res = provider.await;
1373
- ctx.start_io().await;
1374
- res
+ provider.await
1375
1376
1377
/// Returns the text of the QR code for the running [`CommandApi::provide_backup`].
0 commit comments