Okay can't do that actually

This commit is contained in:
kozabrada123 2024-01-12 17:50:44 +01:00
parent 13287ad43b
commit 5d04bf9d7e
1 changed files with 1 additions and 3 deletions

View File

@ -161,9 +161,7 @@ impl UdpHandler {
let result = self.socket.recv(&mut buf).await;
if let Ok(size) = result {
let message_bytes = buf[0..size];
drop(buf);
self.handle_message(&message_bytes).await;
self.handle_message(&buf[0..size]).await;
continue;
}