diff --git a/Rust/Cargo.toml b/Rust/Cargo.toml index f3b3de2..9b090f2 100644 --- a/Rust/Cargo.toml +++ b/Rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chat-reseau" -version = "0.5.5" +version = "0.5.7" authors = ["Lucien Cartier-Tilet "] [dependencies] diff --git a/Rust/src/client.rs b/Rust/src/client.rs index 18d73cf..79d7449 100644 --- a/Rust/src/client.rs +++ b/Rust/src/client.rs @@ -114,7 +114,8 @@ fn get_name() -> String { fn write_to_server(stream: TcpStream) { let mut writer = BufWriter::new(&stream); - + writeln!(writer, "REQ CLIENTS").unwrap(); + writer.flush().unwrap(); loop { let line = &*get_entry(); line.trim();