mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
Update mod.rs
This commit is contained in:
parent
cfea87251b
commit
f0a5fa48b8
@ -189,11 +189,9 @@ impl Server {
|
|||||||
|
|
||||||
match code as char {
|
match code as char {
|
||||||
'C' => {
|
'C' => {
|
||||||
info!("hi");
|
|
||||||
let mut client = Client::new(socket).await;
|
let mut client = Client::new(socket).await;
|
||||||
match client.authenticate(&cfg_ref).await {
|
match client.authenticate(&cfg_ref).await {
|
||||||
Ok(is_client) if is_client => {
|
Ok(is_client) if is_client => {
|
||||||
info!("bye");
|
|
||||||
ci_ref.send(client).await;
|
ci_ref.send(client).await;
|
||||||
},
|
},
|
||||||
Ok(_is_client) => {
|
Ok(_is_client) => {
|
||||||
@ -282,7 +280,6 @@ impl Server {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
info!("Client pushed to joinset!");
|
|
||||||
}
|
}
|
||||||
Err(e) => error!("Failed to accept incoming connection: {:?}", e),
|
Err(e) => error!("Failed to accept incoming connection: {:?}", e),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user