Okay can't do that actually
This commit is contained in:
parent
f2aa22329a
commit
c6919d464c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue