actually delete connection if someone disconnects
This commit is contained in:
parent
c5677e304d
commit
1c8352a235
1 changed files with 4 additions and 0 deletions
|
|
@ -414,6 +414,10 @@ impl<C: Crypto> Server<C> {
|
||||||
);
|
);
|
||||||
drop(inner);
|
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;
|
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