diff --git a/src/tcp/control.rs b/src/tcp/control.rs index 12d5bd1..fa67c2b 100644 --- a/src/tcp/control.rs +++ b/src/tcp/control.rs @@ -41,6 +41,7 @@ impl ControlChannel { let size = rx.read_u32().await?; let mut buffer = vec![0u8; size as usize]; rx.read_exact(&mut buffer).await?; + drop(rx); super::proto::Packet::decode(id, &buffer) } }