proper shutdown and progress reports

This commit is contained in:
dignifiedquire
2022-07-11 16:41:49 +02:00
parent 995bf6fa9e
commit 0aa4e21f7a
3 changed files with 32 additions and 9 deletions

View File

@@ -494,7 +494,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
let file = dir.join("qr.svg");
tokio::fs::write(file, qr_code.as_bytes()).await?;
tokio::time::sleep(std::time::Duration::from_secs(100)).await;
transfer.done().await?;
sender.close().await?;
}
"receive-backup" => {