actually delete connection if someone disconnects

This commit is contained in:
Maple 2026-04-11 18:16:20 +02:00
commit 1c8352a235

View file

@ -414,6 +414,10 @@ impl<C: Crypto> Server<C> {
);
drop(inner);
let mut conns = self.connections.write().await;
conns.remove(&addr);
drop(conns);
self.socket.send_to(&packet, addr.regular_socket_addr).await;
self.socket.send_to(&packet, addr.regular_socket_addr).await;
self.socket.send_to(&packet, addr.regular_socket_addr).await;