Fix bug with missing bytes
parent
1e435c419e
commit
2496c2a22a
|
|
@ -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 => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue