Fix `webmetro send` not exiting when stdin ends.

This commit is contained in:
Tangent 128 2018-10-21 02:22:46 -04:00
parent b64e3f4bac
commit 26930b07e0
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ pub fn run(args: &ArgMatches) -> Result<(), WebmetroError> {
chunk_stream = Box::new(chunk_stream.throttle());
}
Runtime::new().unwrap().block_on_all(chunk_stream.for_each(|chunk| {
Runtime::new().unwrap().block_on(chunk_stream.for_each(|chunk| {
io::stdout().write_all(chunk.as_ref()).map_err(WebmetroError::IoError)
}))
}

View File

@ -72,5 +72,5 @@ pub fn run(args: &ArgMatches) -> Result<(), WebmetroError> {
})
.map_err(WebmetroError::from_err);
Runtime::new().unwrap().block_on_all(future)
Runtime::new().unwrap().block_on(future)
}