diff --git a/quinn-proto/src/connection/datagrams.rs b/quinn-proto/src/connection/datagrams.rs index 8ab1d7169..45454e107 100644 --- a/quinn-proto/src/connection/datagrams.rs +++ b/quinn-proto/src/connection/datagrams.rs @@ -153,6 +153,7 @@ impl DatagramState { datagram.data.len(), max_payload ); + self.outgoing_total -= datagram.data.len(); } result });