mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 23:06:08 +00:00
Update mod.rs
This commit is contained in:
@@ -72,9 +72,11 @@ impl Server {
|
||||
let connect_runtime_handle = tokio::spawn(async move {
|
||||
loop {
|
||||
match tcp_listener_ref.accept().await {
|
||||
Ok((socket, addr)) => {
|
||||
Ok((mut socket, addr)) => {
|
||||
info!("New client connected: {:?}", addr);
|
||||
|
||||
socket.set_nodelay(true);
|
||||
|
||||
let mut client = Client::new(socket);
|
||||
match client.authenticate(&config_ref).await {
|
||||
Ok(_) => {
|
||||
@@ -182,8 +184,9 @@ impl Server {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i, packet) in packets {
|
||||
self.parse_packet(i, packet).await?
|
||||
self.parse_packet(i, packet).await?;
|
||||
}
|
||||
|
||||
// I'm sorry for this code :(
|
||||
|
||||
Reference in New Issue
Block a user