Update mod.rs

This commit is contained in:
Luuk van Oijen 2023-11-23 11:00:15 +01:00
parent cfea87251b
commit f0a5fa48b8

View File

@ -189,11 +189,9 @@ impl Server {
match code as char {
'C' => {
info!("hi");
let mut client = Client::new(socket).await;
match client.authenticate(&cfg_ref).await {
Ok(is_client) if is_client => {
info!("bye");
ci_ref.send(client).await;
},
Ok(_is_client) => {
@ -282,7 +280,6 @@ impl Server {
};
}
});
info!("Client pushed to joinset!");
}
Err(e) => error!("Failed to accept incoming connection: {:?}", e),
}