diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-02 08:52:17 +0100 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-02-02 09:19:13 +0100 |
commit | 1fa80f315d801e0b2ee81425728694a420072903 (patch) | |
tree | 54e847a29668253053ee0c724893917e657e6cee | |
parent | 79ef89fc1ba76577cbce5312205610062b070b7d (diff) |
Fix: wait properly for multibar join
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r-- | src/commands/source.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/source.rs b/src/commands/source.rs index 1567ca7..404d9f7 100644 --- a/src/commands/source.rs +++ b/src/commands/source.rs @@ -113,7 +113,8 @@ where .collect::<futures::stream::FuturesUnordered<_>>() .collect::<Vec<Result<_>>>(); - let (results, _) = tokio::join!(results, async move { multi.join() }); + let multibar_block = tokio::task::spawn_blocking(move || multi.join()); + let (results, _) = tokio::join!(results, multibar_block); info!("Verification processes finished"); let out = std::io::stdout(); |