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() {