correctly decrementing connection counters

This commit is contained in:
Godmode Galactus 2023-04-18 14:30:06 +02:00
parent dde14ab16e
commit 7473d789ba
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
1 changed files with 3 additions and 0 deletions

View File

@ -222,6 +222,8 @@ impl ActiveConnection {
if conn.stable_id() != current_stable_id {
conn.clone()
} else {
NB_QUIC_CONNECTIONS.dec();
let new_conn = Self::connect(
identity,
true,
@ -402,6 +404,7 @@ impl ActiveConnection {
};
}
drop(transaction_reciever);
NB_QUIC_CONNECTIONS.dec();
NB_QUIC_ACTIVE_CONNECTIONS.dec();
}