V0 #1
1 changed files with 4 additions and 0 deletions
actually delete connection if someone disconnects
commit
1c8352a235
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue