diff --git a/lesson13/client13/src/main.rs b/lesson13/client13/src/main.rs index 5dd1c25..09310cd 100644 --- a/lesson13/client13/src/main.rs +++ b/lesson13/client13/src/main.rs @@ -59,7 +59,7 @@ fn outgoing(mut stream: TcpStream) -> JoinHandle<()> { match user_input.split_whitespace().next().unwrap_or_default() { ".quit" => { println!("{} Exiting!", current_time(),); - process::exit(1) + process::exit(0) } ".file" => { //TODO cannot read file diff --git a/lesson13/shared13/src/lib.rs b/lesson13/shared13/src/lib.rs index 34546d3..a33cbb4 100644 --- a/lesson13/shared13/src/lib.rs +++ b/lesson13/shared13/src/lib.rs @@ -44,7 +44,7 @@ pub fn server_address(args: Vec) -> String { if args.len() > 1 && args[1] == "help" { println!("=============== USAGE ==============="); println!("{} IPaddress:port", args[0]); - process::exit(1) + process::exit(0) } else if args.len() > 1 && args[1].parse::().is_ok() { args[1].clone() } else {