Okay can't do that actually
This commit is contained in:
parent
13287ad43b
commit
5d04bf9d7e
|
@ -161,9 +161,7 @@ impl UdpHandler {
|
||||||
|
|
||||||
let result = self.socket.recv(&mut buf).await;
|
let result = self.socket.recv(&mut buf).await;
|
||||||
if let Ok(size) = result {
|
if let Ok(size) = result {
|
||||||
let message_bytes = buf[0..size];
|
self.handle_message(&buf[0..size]).await;
|
||||||
drop(buf);
|
|
||||||
self.handle_message(&message_bytes).await;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue