This commit is contained in:
2026-08-20 19:20:35 +02:00
parent 943dc96703
commit 7c2cc0afe9
+4
View File
@@ -75,12 +75,16 @@ impl Server {
.await .await
.insert(conid, client.clone()); .insert(conid, client.clone());
drop(clients_meta);
if let Err(e) = read_loop(&s, public_key, &client).await { if let Err(e) = read_loop(&s, public_key, &client).await {
eprintln!("Failed to handle client: {e}"); eprintln!("Failed to handle client: {e}");
} else { } else {
println!("Client connection closed") println!("Client connection closed")
} }
let mut clients_meta = s.clients.lock().await;
let mut connections = clients.connections.lock().await; let mut connections = clients.connections.lock().await;
connections.remove(&conid); connections.remove(&conid);