~matthiasbeyer/butido

781fae3dba04b3e0e97db0a7f28f5d132d356754 — Matthias Beyer 2 years ago d70fc03
Fix: Do not finish download twice

The calling function does this already.

Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
1 files changed, 0 insertions(+), 1 deletions(-)

M src/commands/source/download.rs
M src/commands/source/download.rs => src/commands/source/download.rs +0 -1
@@ 147,7 147,6 @@ async fn perform_download(source: &SourceEntry, progress: Arc<Mutex<ProgressWrap
            .await
    }

    progress.lock().await.finish_one_download().await;
    file.flush()
        .await
        .map_err(Error::from)