diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/source.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs index f3f65a4..5284678 100644 --- a/src/commands/source.rs +++ b/src/commands/source.rs @@ -286,8 +286,9 @@ pub async fn download( }) .flatten() .collect::<futures::stream::FuturesUnordered<_>>() - .collect::<Result<()>>() - .await; - multi.join()?; + .collect::<Result<()>>(); + + let multibar_block = tokio::task::spawn_blocking(move || multi.join()); + let (r, _) = tokio::join!(r, multibar_block); r } |