quit fountain generator if error is encountered

This commit is contained in:
bunnie 2022-05-11 22:20:15 +08:00
parent ce116c2c0d
commit fd500927d3

View file

@ -175,6 +175,7 @@ impl<'a> ShellCmdApi<'a> for NetCmd {
match std::io::Write::write(&mut stream, format!("hello! {}\n", count).as_bytes()) {
Err(e) => {
log::info!("fountain write failed with error {:?}", e);
break;
}
_ => {}
}