Fix bug with missing bytes

master
Liam Conway 2024-01-25 22:36:17 -07:00
parent 1e435c419e
commit 2496c2a22a
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

@ -623,6 +623,7 @@ impl TMClient {
match BackendPacket::from_bytes(&header.to_vec()) { match BackendPacket::from_bytes(&header.to_vec()) {
Some(packet) => { Some(packet) => {
data_size = packet.size as usize; 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); log::debug!("Received {} bytes ({}/{})", read_bytes, read_bytes, BACKEND_PACKET_HEADER_SIZE + data_size);
}, },
None => { None => {