aboutsummaryrefslogtreecommitdiff
path: root/planetwars-matchrunner/src/bot_runner.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-11-27 11:26:38 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-11-27 11:26:38 +0100
commitc7d973406790056451af2af24630f03409a9647e (patch)
treec74d458524dd4219c5b0233f4c1af01477fb8fbb /planetwars-matchrunner/src/bot_runner.rs
parent2b71ca625ed07697eb8f53d26ec57f92802b46e5 (diff)
downloadplanetwars.dev-c7d973406790056451af2af24630f03409a9647e.tar.xz
planetwars.dev-c7d973406790056451af2af24630f03409a9647e.zip
client: don't freeze when bot does not produce output
Diffstat (limited to 'planetwars-matchrunner/src/bot_runner.rs')
-rw-r--r--planetwars-matchrunner/src/bot_runner.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/planetwars-matchrunner/src/bot_runner.rs b/planetwars-matchrunner/src/bot_runner.rs
index 8597e26..f7c0742 100644
--- a/planetwars-matchrunner/src/bot_runner.rs
+++ b/planetwars-matchrunner/src/bot_runner.rs
@@ -108,9 +108,9 @@ impl Bot {
pub struct BotProcess {
#[allow(dead_code)]
- child: process::Child,
- stdin: process::ChildStdin,
- stdout: Lines<BufReader<process::ChildStdout>>,
+ pub child: process::Child,
+ pub stdin: process::ChildStdin,
+ pub stdout: Lines<BufReader<process::ChildStdout>>,
}
impl BotProcess {