From b4b365945810bae6fb25ca5846e6f4700fcc123f Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Mon, 4 Mar 2024 00:54:51 +0100 Subject: [PATCH] [SC64][SW] Fix buffered receive bug in sc64deployer server --- sw/deployer/src/sc64/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/deployer/src/sc64/server.rs b/sw/deployer/src/sc64/server.rs index d27a0f0..ae52a15 100644 --- a/sw/deployer/src/sc64/server.rs +++ b/sw/deployer/src/sc64/server.rs @@ -172,7 +172,7 @@ fn server_stream_thread( if exit_flag.load(Ordering::Relaxed) { return Ok(()); } - match stream.read(&mut header[header_position..header_length]) { + match stream_reader.read(&mut header[header_position..header_length]) { Ok(0) => return Ok(()), Ok(bytes) => header_position += bytes, Err(error) => match error.kind() {