diff --git a/src/net.rs b/src/net.rs index d6a006a..a62da55 100644 --- a/src/net.rs +++ b/src/net.rs @@ -163,7 +163,7 @@ where let res = self.receiver.try_recv(); match res { Ok(msg) => { - let msg = bincode::deserialize(&msg.bytes).unwrap(); + let msg = bincode::deserialize(&msg.bytes[HEADER_LEN..]).unwrap(); (Some(msg), false) } Err(TryRecvError::Empty) => (None, false),