mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-19 20:17:12 +08:00
(server) fix: Let processor continue processing subsequence messages after writing into client
This commit is contained in:
@@ -46,7 +46,7 @@ impl TcpServer {
|
||||
}
|
||||
if ready.is_writable() {
|
||||
match socket.try_write(b"Hello from server written in Rust!") {
|
||||
Ok(_) => break,
|
||||
Ok(_) => continue,
|
||||
Err(e) if e.kind() == ErrorKind::WouldBlock => continue,
|
||||
Err(e) => {
|
||||
log::error!("Failed to write to TCP client socket: {e}");
|
||||
|
||||
Reference in New Issue
Block a user