From 5cf4b4609e89bf6e92724d595dab21f4b39d2240 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 1 Jun 2021 15:40:48 +0100 Subject: [PATCH] otter cli: Shut down CookedStdout before bundle data Signed-off-by: Ian Jackson --- src/bin/otter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 3a9147df..119573bd 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -1799,7 +1799,7 @@ mod download_bundle { } #[throws(AE)] - fn call(SCCA{ ma, args,.. }:SCCA) { + fn call(SCCA{ out, ma, args,.. }:SCCA) { let args = parse_args::(args, &subargs, &ok_id, None); let mut chan = ma.access_game()?; let kind = bundles::Kind::only(); @@ -1809,6 +1809,7 @@ mod download_bundle { let (f, path_tmp): (Box, _) = if path.as_os_str().as_bytes() == b"-" { + drop(out); (Box::new(RawStdout::new()), None) } else { let tmp = { -- 2.30.2