aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-19 16:23:39 +0100
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-19 16:23:39 +0100
commite1a5830622b3adf2a868e42e7f2259cb26a8a0f6 (patch)
tree548afa5e4b355671f344a06c5864f1da879edbd6 /src
parent718e8618544c4cdde78138655305eee7c08058ee (diff)
downloadmt_rudp-e1a5830622b3adf2a868e42e7f2259cb26a8a0f6.tar.xz
Fix reverse order of chunk count and index
Diffstat (limited to 'src')
-rw-r--r--src/recv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recv.rs b/src/recv.rs
index 34e273c..309bf94 100644
--- a/src/recv.rs
+++ b/src/recv.rs
@@ -227,8 +227,8 @@ impl<P: UdpPeer> RudpReceiver<P> {
// println!("Split");
let seqnum = cursor.read_u16::<BigEndian>()?;
- let chunk_index = cursor.read_u16::<BigEndian>()? as usize;
let chunk_count = cursor.read_u16::<BigEndian>()? as usize;
+ let chunk_index = cursor.read_u16::<BigEndian>()? as usize;
let mut split = self.chans[ch]
.splits