From 2496c2a22a498e9b648e95dfd2adf72b81c87c9a Mon Sep 17 00:00:00 2001 From: Liam Conway <11491642+liconway@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:36:17 -0700 Subject: [PATCH] Fix bug with missing bytes --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index e82230b..45f8bca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -623,6 +623,7 @@ impl TMClient { match BackendPacket::from_bytes(&header.to_vec()) { Some(packet) => { data_size = packet.size as usize; + read_bytes += BACKEND_PACKET_HEADER_SIZE; log::debug!("Received {} bytes ({}/{})", read_bytes, read_bytes, BACKEND_PACKET_HEADER_SIZE + data_size); }, None => {