Skip to content

Commit

Permalink
Fix local networking
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-t committed Oct 19, 2023
1 parent 5b57144 commit 325ea98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 325ea98

Please sign in to comment.