aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat-cli/src/download.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/fatcat-cli/src/download.rs b/fatcat-cli/src/download.rs
index 916f550..d415e58 100644
--- a/fatcat-cli/src/download.rs
+++ b/fatcat-cli/src/download.rs
@@ -340,6 +340,7 @@ fn loop_printer(
for line in output_receiver {
println!("{}", line);
}
+ done_sender.send(())?;
drop(done_sender);
Ok(())
}
@@ -354,6 +355,7 @@ fn loop_download_tasks(
download_entity(task.json_str, task.output_path, task.show_progress)?;
output_sender.send(status_line)?;
}
+ drop(output_sender);
Ok(())
})();
if let Err(ref e) = thread_result {
@@ -430,6 +432,7 @@ pub fn download_batch(
}
}
};
+ drop(task_sender);
done_receiver.recv()?;
Ok(count)
}